Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Oooh, now that's glorious!


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: