Co-locate custom python file in same directory as notebook


#1

Hi - I don’t see that anyone else has requested this. I also cannot find that this feature exists. Here it is:

I really need to co-locate a custom python support file for my main notebook in the same directory so I can import it into my notebook:

import visuals.py


#2

Hi!

The simplest way to do this is using neptune CLI.

Create a directory with all your files and then execute

neptune experiment send-notebook

You’ll start a notebook containing copy of your current directory in its cwd (/neptune)

Once you stop the notebook, all modifications to you files will be stored and accessible from file browser/neptune data download


#3

This worked: neptune experiment send-notebook -f customer_segments.ipynb -i customers.csv --project CON

Thanks for the help. The documentation doesn’t have many examples.


#4

Glad I could help :slight_smile:

Thanks for the feedback on documentation, we’ll see what we can do about it.