question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notebooks are loaded from another instance if multiple instances are hosted on the same domain

See original GitHub issue

Description

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

  1. Go to project https://leukipp.github.io/jupyterlite/lab/, forked from the demo repository.
  2. Open python.ipynb, make some changes and save.
  3. Go to another project https://leukipp.github.io/xmastree/lab/, which also contains a file named python.ipynb.
  4. 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:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
bollwyvlcommented, Jan 15, 2022

generate an unique id

mmm… smells like magic.

If a sequential id generator

At some point, we’d probably just add git or fossil provider for #315 rather than re-inventing it poorly.

I’ll go forward with the simplest addition of a localStorageName entry for jupyter-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.

0reactions
bollwyvlcommented, Jan 20, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found