Description
Feature description
I find myself limited by nebari with respect to working on larger analyses (multiple notebooks spread across directory tree). Locally, I would either:
- start JupyterLab with modified
PYTHONPATH
variable to include the root of the analysis repo and have relative imports and other fun things for free - install package in editable mode in the appropriate environment
However in nebari I cannot do either (because of lack of exposed spawner customization and conda store respectively).
Nebari now offers documentation on How to Develop Local Packages on Nebari, however I find the documented solution unfit for the scenario of using Nebari for data analysis in notebooks.
In particular, I find the requirement to include on top of each notebook the block:
import sys
sys.path.append('/home/myusername/venv_myenv/lib/python3.10/site-packages/')
cumbersome and making it difficult to collaborate.
It is really counter-productive having to add this in each notebook, also if another user wants to run it they need to change the user name.
Developing in ~/shared
would help a bit, but would make that snippet even larger:
import sys
import pathlib
sys.path.append(pathlib.Path('~/shared/venv_myenv/lib/python3.10/site-packages/').expanduser())
Parametrized kernels (jupyter/enhancement-proposals#87) could help here once they lands (it may be worth dedicating some time to help it land).
Value and/or benefit
More happy users
Anything else?
No response
Metadata
Metadata
Assignees
Type
Projects
Status
New 🚦