0

When you launch Jupyter, it can be launched to start from a specific directory, eg c:\foo\bar.

Can this path be accessed from with Jupyter via python?

import sys
sys.path.insert(0,'c:\foo\bar')
from Libs import some_package

The reason is, for re-usability, I have a custom module and I typically add this as a submodule to where Jupyter is executed from. This could be c:... this could be some network share (keeping a project data together) or cloned on a linux machine where the path structure is totally different.

Naib
  • 964
  • 6
  • 20
  • Maybe this could help? https://stackoverflow.com/questions/69394705/how-to-set-the-default-working-directory-of-all-jupyter-notebooks-as-the-project/69399208#69399208 – krassowski Jan 16 '22 at 18:36

0 Answers0