Hi! What is the recommended way to launch a jupyte...
# general
a
Hi! What is the recommended way to launch a jupyter notebook via pants, and have access to all modules within my project for interactive exploration?
b
We have a plugin we use locally which I'm planning on upstreaming. Outside of that, you might have some luck modeling a target that depends on everything and launches the notebook server programmatically
a
Nice, thanks. Is there a convenient way to depend on everything?
b
None come to mind 😬
☺️ 1
Even with a plugin I think thats an issue. The plugin models each notebook as a target, so just a layer of niceness on top of launching the notebook programmatically
w
i expect that https://github.com/pantsbuild/pants-jupyter-plugin/ should be updated to use
./pants export
…although. hm. that wouldn’t get you firstparty sources.
b
We load firstparty through: • Running in
run
and knowing
PYTHONPATH
points to the source root • Doing dep inference, in hopes that fill sin the gaps for things like codegen