How do I tell Jupyter (console and notebook) to import some Python packages by default? I would like to do this using only the .jupyter folder
.jupyter
A bit of background:
The IPython configuration resides in your .ipython directory. The quickest way to add code to run on startup of IPython (affects IPython sessions in the terminal and notebook) is to add startup files to your IPython profile.
.ipython
Create the default profile, if it doesn't exist already (it probably does):
ipython profile create
Make a Python script ~/.ipython/profile_default/startup/whateveryouwant.py and add any imports or other commands in there that you would like to have ready whenever you start IPython. IPython will run this script and any others in that directory every time it starts up.
~/.ipython/profile_default/startup/whateveryouwant.py
1.4m articles
1.4m replys
5 comments
57.0k users