4 ms·
That works with uv as well. Launch Jupyter with uv tool run jupyter lab and then put !uv pip install my_cool_library !uv pip install other_library
by dagw 2y ago
That works with uv as well. Launch Jupyter with
uv tool run jupyter lab
and then put
!uv pip install my_cool_library
!uv pip install other_library
...
in the first cell. Now you get full uv caching goodness.
- benrutter 2y agoOooh, now that's glorious!
- dagw 2y agoThe only thing to be aware of with this approach is that you don't get an isolate venv for each notebook. So if you're working on one notebook that needs my_lib 1.X and one that needs my_lib 2.X you'll need to manually create separate venvs for each and make sure you start Jupyter in the right venv for each notebook.