Notebooks are loaded from another instance if multiple instances are hosted on the same domain
See original GitHub issueDescription
Hosting multiple JupyterLite instances on the same domain (e.g. GitHub pages) leads to a weird behavior for equally named files. Completely different .ipynb files from instance A will be loaded when you afterwards visit instance B.
Reproduce
- Go to project https://leukipp.github.io/jupyterlite/lab/, forked from the demo repository.
- Open
python.ipynb
, make some changes and save. - Go to another project https://leukipp.github.io/xmastree/lab/, which also contains a file named
python.ipynb
. - Open
python.ipynb
, the content from the previous visited notebook is loaded.
Expected behavior
Notebook states should be loaded correctly, regardless of the previously visited instances.
Context
- JupyterLite version: v0.1.0a18
Possible Solutions
- Use different indexedDB database names per JupyterLite root path (currently always
JupyterLite Storage
is used) - Use relative filepaths inside indexedDB database (e.g. /jupyterlite/lab/… or /xmastree/lab/…)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
How Are Amazon SageMaker Studio Notebooks Different ...
The directory is automatically mounted onto all instances and kernels as they're started, so their notebooks and other files are always available. The...
Read more >Why am I getting "Internal Server Error" running two Odoo ...
I make login in the first instance ( http://111.222.33.44:3333 ); I close the session; I load the address of the second instance in...
Read more >Create a user-managed notebooks instance
In the Google Cloud console, go to the User-managed notebooks page. · Click add_box New notebook. · Select an instance type, and then...
Read more >Overview | Kubernetes
For example, if multiple applications run on a physical server, there can be instances where one application would take up most of the ......
Read more >Zeppelin Multiple Instances - Cloudera Community - 279629
(No HA support without a external tool, notebook created in one instance of zeppelin will not be visible until you manually re-load the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
mmm… smells like magic.
At some point, we’d probably just add
git
orfossil
provider for #315 rather than re-inventing it poorly.I’ll go forward with the simplest addition of a
localStorageName
entry forjupyter-lite.json
. This would give a site deployer the ability to override it if they don’t want the default behavior, but not change the existing behavior too much.shipped and documented in
0.1.0a20
, please re-open (or raise a new issue) if new issues related to multiple sites-per-host persist.