vscode-jupyter icon indicating copy to clipboard operation
vscode-jupyter copied to clipboard

Support a notebook "scratch pad" and/or integrate interactive window experience for notebooks

Open rchiodo opened this issue 3 years ago • 47 comments

This is similar to gather but without having to run gather.

Sometimes I'm working on a notebook and I add some cells to try something out and I don't want to lose them, but I don't want them in my 'main' notebook.

rchiodo avatar Jan 30 '21 00:01 rchiodo

any updates on this?, this is a killer feature to be honest for every data scientist.

ahmedanis03 avatar Oct 21 '21 06:10 ahmedanis03

There was a hackathon project that implemented it but we haven't shipped that yet. It's waiting more up votes I think.

rchiodo avatar Oct 21 '21 15:10 rchiodo

Does anyone have any updates at all?

mischki avatar Dec 13 '21 16:12 mischki

This isn't on our backlog (you can check the milestone to see if we plan to implement it soon).

rchiodo avatar Dec 13 '21 17:12 rchiodo

Keen for this feature please

thehappycheese avatar Jan 13 '22 09:01 thehappycheese

I'd love to have this feature as well!

erikvdp avatar Jan 14 '22 13:01 erikvdp

would be great to have this feature. It's the only thing preventing me atm from using VSC for jupyter notebooks...

tadz-io avatar Jan 24 '22 14:01 tadz-io

I'd love to have this feature!

aras-y avatar Jan 26 '22 14:01 aras-y

I'd love to have this feature!

philffm seems to have found a workaround, but I haven't been able to figure out how to implement the first step of getting the notebook kernel's URL in VScode. If someone could confirm the workaround it would be great.

mischki avatar Jan 26 '22 15:01 mischki

The workaround is to use a 'remote' jupyter server. Essentially you start jupyter yourself on your local machine and then use that to run your kernels.

That allows you to change the kernel to an already running kernel on any notebook or interactive window.

rchiodo avatar Jan 26 '22 17:01 rchiodo

The workaround is to use a 'remote' jupyter server. Essentially you start jupyter yourself on your local machine and then use that to run your kernels.

That allows you to change the kernel to an already running kernel on any notebook or interactive window.

Thank you. This indeed works, but I'm having to create a notebook externally and then connect both the VSCode notebook and the VSCode interactive window to that kernel. It's better than nothing, but gets cumbersome if one needs to run several notebooks at the same time (I routinely have 5-6 actively run notebooks at any given time). So the question is - how could one obtain the URL of the kernel of the notebook started within VSCode, i.e. internally? Then one could simply pass that URL on to the interactive window and voila.

mischki avatar Jan 26 '22 21:01 mischki

So the question is - how could one obtain the URL of the kernel of the notebook started within VSCode, i.e. internally? Then one could simply pass that URL on to the interactive window and voila.

This isn't possible. There isn't one.

However you don't have to open the notebook outside VS code. If you set VS code to use 'remote' (localhost), just open a notebook and run it. The kernel should then appear in the list of kernels for an interactive window if you start it afterwards.

rchiodo avatar Jan 26 '22 21:01 rchiodo

NEED THIS FEATURE! ⚡️⚡️🙏

ulfaslak avatar Apr 07 '22 18:04 ulfaslak

@ulfaslak It looks like Jupyter: Create Interactive Window do the job. Just switch the ipykernel in the top right corner manually.

Zhivago-Sizov avatar Apr 19 '22 07:04 Zhivago-Sizov

@vuvalini Not in my environment. It creates and connects to a new kernel instance, not the existing one that my notebook runs on.

ulfaslak avatar Jul 03 '22 08:07 ulfaslak

would be a sick feature to have

Timsaur avatar Aug 10 '22 19:08 Timsaur

Blocked on https://github.com/microsoft/vscode-jupyter/issues/9517

DonJayamanne avatar Aug 15 '22 03:08 DonJayamanne

similar idea here: https://github.com/microsoft/vscode-jupyter/issues/6765

AaronCreighton avatar Oct 27 '23 03:10 AaronCreighton

hello,

is any progress on this? I recently switched from jupyter lab to vscode, and this feature, aka "interactive ipython console attached to the notebook", is a must have feature. This is a very frequent thing, that I need to access variables, do some temporary plots or analytics, but I do not want then in the notebook.

jklen avatar Dec 26 '23 12:12 jklen

Same question - any update on this - I would like to move to VS Code for Copilot, but looking for that feature:)

ChrisKInfo avatar Jan 09 '24 17:01 ChrisKInfo

This hasn't yet made it into the plan and still relies on #6765, though still something that we plan to do.

Using a jupyter server created outside vs code is still a reliable workaround though https://github.com/microsoft/vscode-jupyter/issues/6484#issuecomment-1018674246

amunger avatar Jan 09 '24 17:01 amunger

I need this feature!

tapyu avatar Jan 26 '24 16:01 tapyu

+1 need this feature. Thanks!

Yefee avatar Feb 11 '24 05:02 Yefee

I got that working (a interactive window in VScode connected to the same kernel of the notebook) following these instructions https://stackoverflow.com/a/72599604/4752223

kernel of the notebook = a kernel running in JupyterLab server

image

Unfortunately, I was aiming to also be able to run just a notebook-selection (Shift+Enter) into that 'interactive window' (just like in Jupyterlab) but that seems not possible yet.

Mr-Ruben avatar Feb 15 '24 10:02 Mr-Ruben

@Mr-Ruben Does that work for any operating system?

tapyu avatar Feb 15 '24 10:02 tapyu

download

ulfaslak avatar Feb 15 '24 11:02 ulfaslak

Running a separate jupyter server is a non-solution.

I work with several people who continue to avoid vscode because this feature is missing. I'm also pretty keen on it.

thehappycheese avatar Feb 15 '24 15:02 thehappycheese

This hasn't yet made it into the plan and still relies on #6765, though still something that we plan to do.

Using a jupyter server created outside vs code is still a reliable workaround though #6484 (comment)

I have followed the steps in #6484. I create a server and copy and paste the server's URL into the interactive window's interpreter. It seems to work but as soon as I close the interactive window, the kernels shut down.

This works well in ipynb files, though. I can close the jupyter notebook, connect again, and continue using the same kernel.

Is there a way to prevent the interactive window from shutting down the kernel after closing it?

rjavierch avatar Feb 20 '24 15:02 rjavierch

Is there a way to prevent the interactive window from shutting down the kernel after closing it?

unfortunately no, this by design

DonJayamanne avatar Feb 20 '24 21:02 DonJayamanne

This hasn't yet made it into the plan and still relies on #6765, though still something that we plan to do.

Using a jupyter server created outside vs code is still a reliable workaround though #6484 (comment)

@Everyone What would it take for this feature request to make it to the plan? How does the team select and prioritize external feature requests?

abhirajD avatar Feb 28 '24 18:02 abhirajD