I've created multiple python modules as .py files in a Python IDE called Pyzo in the following path:
'C:\Users\Michael\Anaconda3\Lib\site-packages'
which I can then import like regular Python packages such as pandas and numpy into my Jupyter notebook or into Pyzo.
I'm a bit lost as to how to create a module in Jupyter notebook, containing a class with say a simple function, which I can then save and import into a new Jupyter notebook file.
The examples in this link below I found extremely vague and overly complicated. Any simpler examples would help, thanks! http://nbviewer.jupyter.org/github/ipython/ipython/blob/master/examples/IPython%20Kernel/Importing%20Notebooks.ipynb
File->Download->Python (.py)
– SawtelleC:\Users\Michael\Anaconda5\Lib
where I have all my Python modules saved, and can then import from this folder. So I have to copy the downloaded .py file from the Download folder, and paste into the Anaconda5\Lib folder. Other than that, it's pretty much what I needed, way more simpler than the link I was suggested. Thanks! – Cohlx
for any window, if you hover over it, it'll sayOpen Menu
. Click on it, selectOptions
. A new window will appear titledGeneral
. On the Download section, chooseAlways ask where to save files
. Now, save any file .py in Jupyter notebook as usual. Once you clickOK
, a new window will appear, allowing to set a specific download location as default. – Cohl