Notebook: Feature request: open a notebook without running kernel

Created on 29 Dec 2017  路  17Comments  路  Source: jupyter/notebook

We are working with notebooks which use PySpark kernel. Very often we need just to look inside the notebook, but we don't need to run it. But if I click on the notebook, it starts a kernel as well, but PySpark kernel is very heavy and it consumes resources: after waiting for several minutes until the notebook starts, I am doing "shutdown kernel".

It would be very fine if there was a button in the notebook list "View without running kernel".

Most helpful comment

Use cases

  • browsing notebooks with no intent of running them
  • editing non-kernel-related content, like markdown
  • running notebooks with different kernels (e.g. kernel versions (e.g. py 3.7 vs 3.6), package versions)
  • running multi-kernel notebooks
  • when you're browsing notebooks on a non-dev machine or environment, and using a kernel would be doomed anyway

UX ideas:

  • a "read only" option when right clicking on a notebook on the main page (file browser view)
  • a "open without kernel" option

I'm surprised this isn't already possible. Maybe a plug-in implements it?

All 17 comments

+1 for this feature, looks like it hasn't gotten much love for almost a year. Any updates on this?

I triple this!

Use cases

  • browsing notebooks with no intent of running them
  • editing non-kernel-related content, like markdown
  • running notebooks with different kernels (e.g. kernel versions (e.g. py 3.7 vs 3.6), package versions)
  • running multi-kernel notebooks
  • when you're browsing notebooks on a non-dev machine or environment, and using a kernel would be doomed anyway

UX ideas:

  • a "read only" option when right clicking on a notebook on the main page (file browser view)
  • a "open without kernel" option

I'm surprised this isn't already possible. Maybe a plug-in implements it?

+1

+1

+1, editing / viewing without a runtime just like the Google Colab.

+1, this will be a useful feature.

+1
Would help a lot, specially when using PySpark kernels as it takes some time to launch

+1, surprise it is not ready yet. Sometimes, just want to view the content.

+1 would be usefull

Agree with @grisaitis
There are so many use cases for opening a notebook without the intent to run any cell. It would be great to have an "Open with no Kernel" option in the context menu

How about always open a notebook without a kernel until you try to run it, then fire up the kernel?
This could be optional setting for opening behaviour, not sure how this would affect multi-kernal notebooks mentioned above, didnt know that was a thing

+1 would love this to be a setting which we could customise the default for

One option for editing a notebook without starting a kernel is to use nteract. This does not fully address this issue, but may be helpful to some people.

+1

my case:
workspace with 3 notebooks, where only one is really run, two others are imported in the first one as code

image

Another option is nbviewer.

I have found that the easiest way to start a local server is using docker:

docker run -p 8080:8080 -v $(realpath .):/localfiles jupyter/nbviewer python -m nbviewer --port=8080 --localfiles=/localfiles

We can then navigate to http://localhost:8080/localfile and click on the name of a notebook in the current working directory to open a preview.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonatanblue picture jonatanblue  路  3Comments

cmesro picture cmesro  路  3Comments

mowe96 picture mowe96  路  3Comments

harshinielath picture harshinielath  路  3Comments

qnicole-zakka picture qnicole-zakka  路  3Comments