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.

Treat jupyter as an editor (decouple jupyter and user environments)

See original GitHub issue

I think jupyter should be treated as an editor, decoupled from user code and environment. As a start, it could be installed in its own environment, out of the environment where the user code is run. (This is true in general: desktop users are better off with a system-installed jupyter and kernelspecs pointing to environments.)

The main issue with the current setup is to run ancient code with a modern jupyter, as dependencies might conflict. That is especially true when their versions are specified by the user (in requirements.txt, environment.yml, etc.) for reproducibility’s sake. I have in mind scientific experiments which, for reproducibility, shouldn’t be updated (unlike living projects).

There is however a deeper issue, as ipykernel itself has many dependencies to be installed in the user environment. Longer term, it would be good to decouple ipykernel and jupyter more (to execute code with an old ipykernel specified by user environment with a modern jupyter editor). Even better would be to push the interface down to the notebook file to entirely decouple the editor from the user environment. After all, if jupyter is an editor, running notebooks should not require to install anything in the user environment.

This is potentially a far-fetched and long-term issue that I have little idea how to technically realize, if even possible. Please let me know your thoughts and if it has been discussed (elsewhere) already. As always, thanks for your amazing work!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
manicscommented, Sep 29, 2020

Another use-case: Disabling the mybinder.org jitsi extension https://github.com/jupyterhub/mybinder.org-deploy/issues/1562#issuecomment-700432663

0reactions
meeseeksmachinecommented, Feb 16, 2022

This issue has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/previous-built-binder-repo-suddenly-with-404-error/13047/5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring user environments - JupyterHub - Read the Docs
Jupyter and IPython support “system-wide” locations for configuration, which is the logical place to put global configuration that you want to affect all...
Read more >
Distributed workflows with Jupyter - ScienceDirect.com
Use Jupyter as a unified interface to Cloud and HPC for scientific applications. •. A formalized description of parallel and distributed execution of...
Read more >
Jupyter Documentation - Read the Docs
This page contains information and links about installing and using tools across the Jupyter ecosystem. Generally speaking, the documentation of ...
Read more >
Previous built binder repo suddenly with 404 error
I think jupyter should be treated as an editor, decoupled from user code and env…ironment. As a start, it could be installed in...
Read more >
Variable Explorer in Jupyter Notebook - python - Stack Overflow
Here is a notebook on how to make your own Variable Inspector. I think it was written back when jupyter notebook was called...
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