Skip to content
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

[DOC] - Must completely unload env from notebook with every env rebuild #299

Open
1 task done
kcpevey opened this issue Apr 10, 2023 · 0 comments
Open
1 task done

Comments

@kcpevey
Copy link
Contributor

kcpevey commented Apr 10, 2023

Preliminary Checks

Summary

Every time conda-store rebuilds an environment, its actually storing it as a hashed version of the displayed env name. Because of the way jupyter works, if you update an env you're using in a notebook, the notebook will still be using the old environment.

This has to do with the juypter server caching the absolute path to the current kernel.
How conda store works:

  • symlink global/dashboard -> /path/to/environment/dashboard-1
    When you build a new environment conda-store changes the symlink
  • /path/to/environment/dashboard-1 (exists but not symlinked)
  • symlink global/dashboard -> /path/to/environment/dashboard-2

Jupyter server or something along those lines while we give it the symlink it resolves the path an "remembers" /path/to/environment/dashboard-1

We need a note in our environment building docs and maybe the FAQ that mentions at a high level that when you rebuild your environment, you'll need to

  1. switch from you environment to a different kernel
  2. switch back to your desired environment
    Restart will not be effective here.

Steps to Resolve this Issue

Proper resolution lies with the conda-store project. We just need to document existing functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 📬
Status: New 🚦
Development

No branches or pull requests

2 participants