How to run notebooks with user created packages?¶
I have created my own
utils.py package and I would like to import it in the Neptune cloud notebooks.
How can I do that?
First, you need to upload your file or package to Neptune.
You can do that by going to your projects
Uploads section on the left, and navigating to your file:
Then, you need to fire-up your notebook. Choose the
environment that suits you best.
Remember to mount the
Finally, you need to add your package to the system path. To do so, add the following snippet at the top of your notebook:
import sys sys.path.append('../input/uploads')
Now you can use your
utils.py package with no problems:
from utils import great_function
This is how it looks in Neptune: