[PYTHON] To import your own module with jupyter

sys.path contains:

import sys
sys.path

['',
 '$HOME/anaconda3/lib/python35.zip',
 '$HOME/anaconda3/lib/python3.5',
 '$HOME/anaconda3/lib/python3.5/plat-linux',
 '$HOME/anaconda3/lib/python3.5/lib-dynload',
 '$HOME/anaconda3/lib/python3.5/site-packages/Sphinx-1.3.5-py3.5.egg',
 '$HOME/anaconda3/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg',
 '$HOME/anaconda3/lib/python3.5/site-packages',
 '$HOME/anaconda3/lib/python3.5/site-packages/IPython/extensions',
 '$HOME/.ipython']

So, if you put the python module to import above, you can import it. The easiest and most suitable is

.ipython

So copy it there.

Recommended Posts

To import your own module with jupyter
An easy way to create an import module with jupyter
Steps to install your own library with pip
Memo to create your own Box with Pepper's Python
Server management with Jupyter (1) import
[Ansible] How to call variables when creating your own module
How to import NoteBook as a module in Jupyter (IPython)
(Note) How to pass the path of your own module
How to import NoteBook as a module in Jupyter (IPython)
Reinforcement learning 23 Create and use your own module with Colaboratory
Try HeloWorld in your own language (with How to & code)
Solve your own maze with Q-learning
How to create your own Transform
Bridge ROS to your own protocol
Train UGATIT with your own dataset
Solve your own maze with DQN
How to use jupyter notebook without polluting your environment with Docker
[Introduction to StyleGAN] Unique learning of anime with your own machine ♬
How to make your own domain site with heroku (free plan)
Introduction to Deep Learning (2) --Try your own nonlinear regression with Chainer-
Your own Twitter client made with Django
Migrate your own CMS data to WordPress
Create your own DNS server with Twisted
I want to blog with Jupyter Notebook
Create your own Composite Value with SQLAlchemy
Import your own functions on AWS Glue
How to use jupyter notebook with ABCI
Tag jump to PyPI module with ctags
How to install your own (root) CA
Publish your own Python library with Homebrew
[Python] How to deal with module errors
How to access data with object ['key'] for your own Python class
Python module import
Argument implementation (with code) in your own language
How to define your own target in Sage
How to deal with "No module named'〇〇'" error in Jupyter Notebook | Install with! Pip!
The road to updating Splunkbase with your own Splunk app for Python v2 / v3
Annotate your own data to train Mask R-CNN
Import your own modules in Grasshopper's Python development
Train Stanford NER Tagger with your own data
Add / remove kernel to use jupyter with venv
I tried to start Jupyter with Amazon lightsail
Create a wheel of your own OpenCV module
Make your own music player with Bottle0.13 + jPlayer2.5!
How to create random numbers with NumPy's random module
What to do if you get an Import Error when importing matplotlib with Jupyter
Flow of creating your own package with setup.py with python
Call your own C library with Go using cgo
[Introduction to Udemy Python 3 + Application] 66. Creating your own exceptions
Try to improve your own intro quiz in Python
Write your own activation function with Pytorch (hard sigmoid)
Let's call your own C ++ library with Python (Preferences)
Define your own distance function with k-means of scikit-learn
How to export / import Zope zope object installed with Plone-4.1.5-UnifiedInstaller-20120604.tgz
Import specific cells from other notebooks with Jupyter notebook
Wagtail Recommendation (5) Let's add your own block to StreamField
Try to put LED in your own PC (slightly)
Single sign-on to your Django application with AWS SSO
[Road to intermediate Python] Define in in your own class
Call your own python module from the ROS package
Make Jupyter Notebook your own: Change background and icons