Python import new modules in jupyter Notebook

Wei Sai
Sep 14, 2020

--

Environment: jupyter notebook

Purpose: create a module and import it from another notebook

  1. Create a new module in the jupyter notebook and name it as calculation.ipynb

2. Download the calculation.ipynb as .py file format

3. Test the module by building a new notebook with name of test.ipynb

4. Lastly, let’s take a look at the folder of the directory:

Thanks for the reading. You’re welocme to leave the comments for my further improvement :)

--

--

Wei Sai
Wei Sai

Written by Wei Sai

Sharing while learning, welcome feedbacks for improvement.

No responses yet