Models cannot be compiled from within a jupyter lab notebook
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- jupyter, python
- Domain
- build-system, machine-learning
Research direction
Reproduce the failure in a JupyterLab notebook using the reported Ubuntu, Python, orbit, and cmdstanpy versions. Trace the model compilation entry point and inspect the path passed to make in notebook execution versus regular Python execution. Done means the notebook passes the actual Stan model path and compilation succeeds.
Written by the indexing model from the issue text.
Description
I tried to use orbit models from within a jupyter lab notebook and I get the following error:
ValueError: Failed to compile Stan model '[/home/johann/software/anaconda/envs/sipfront/lib/python3.11/site-packages/orbit/stan/lgt.stan](http://localhost:8888/home/johann/software/anaconda/envs/sipfront/lib/python3.11/site-packages/orbit/stan/lgt.stan)'. Console:
make: *** No rule to make target '[/home/johann/software/anaconda/envs/sipfront/lib/python3.11/site-packages/orbit/stan/lgt](http://localhost:8888/home/johann/software/anaconda/envs/sipfront/lib/python3.11/site-packages/orbit/stan/lgt)'. Stop.
Command ['make', 'STANCFLAGS+=--filename-in-msg=lgt.stan', '[/home/johann/software/anaconda/envs/sipfront/lib/python3.11/site-packages/orbit/stan/lgt](http://localhost:8888/home/johann/software/anaconda/envs/sipfront/lib/python3.11/site-packages/orbit/stan/lgt)']
error during processing No such file or directory
It seems that when running in a notebook, orbit uses a markdown link instead of the actual file path in the make command for compiling the model. Since this is a situation that should be easy to detect, it should also be easy to fix and avoid.
- OS: Ubuntu 24.04
- Python Version: 3.11.13
- orbit 1.1.4.9
- cmdstanpy 1.2.5
- jupyter 1.1.1
- jupyterlab 4.4.3
- jupyter_server 2.16.0
- jupyterlab_server 2.27.3
- notebook 7.4.3
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uber/orbit
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement refactor
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100