-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CondaPkg environments are re-resolved each time a Pluto notebook is opened #2883
Comments
Hey! Thanks for bringing this up, I would like this to work better! Can you take a look at previous discussion in JuliaPy/PythonCall.jl#102 ? In particular, I wonder if this would be fixed by storing the contents of CondaPkg.toml in the notebook, just like Project.toml and Manifest.toml, like I suggested in my issue. Can you check this? To reproduce: make an empty folder called
|
@schlichtanders what do you think about this one? |
@fonsp I believe that CondaPkg will also need the actual downloaded python dependencies for this to work without re-instantiating From my understsanding by default CondaPkg stores the conda deps in a subfolder of the active project, just storing the CondaPkg.toml will not help with avoiding re-downloading the various dependencies which is why I believe @cjdoris suggested to manage a pool of projects directly from within Puto to make the process more seamless for the user |
Saving CondaPkg.toml in the notebook is definitely a good idea to make Pluto notebooks automatically have their Conda dependencies available. This is a straight win. But as observed above, there will still be a significant lag every time you start the notebook because a new Conda environment needs to be installed every time - instantiating a Conda environment is a lot slower than instantiating a Julia one. Counter to @disberd's comment, Conda has a central cache of packages so it won't usually need to re-download them, but still, copying all the packages into the actual env takes time. There are a couple of ways to alleviate this:
|
Thanks for the advice @cjdoris ! With your second point, do you mean that if the I believe that Stephan has experience with storing the CondaPkg.toml in the Pluto notebook! He is currently on holiday, so let's pick this up when he gets back. |
The text was updated successfully, but these errors were encountered: