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

JUPYTER_DATA_DIR not updated when building and running local builds of rsconnect-jupyter #299

Open
bcwu opened this issue Jul 14, 2021 · 0 comments

Comments

@bcwu
Copy link
Contributor

bcwu commented Jul 14, 2021

Problem

Running multiple local instances of rsconnect-jupyter can cause version mismatch issues, even when the run environments are isolated through mechanisms such as venv. This is due to how JUPYTER_DATA_DIR is reused as a global state across different sessions.

Details

On MacOS, the JUPYTER_DATA_DIR is defaulted to ~/Library/Jupyter, in which rsconnect-jupyter will symlink nbextensions/rsconnect_jupyter/.

The /rsconnect_jupyter directory contains version.json, which is used by the GUI at runtime; however, the /rsconnect_jupyter symlink is not updated when the user builds and runs another copy of rsconnect-jupyter locally, even in another isolated venv environment. As a consequence, the runtime GUI will point to the stale version.json location. The user will then encounter an error like the following:

Screen Shot 2021-07-14 at 3 34 14 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant