-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explore using the interactive window as a console for notebook kernels #6765
Comments
I would be glad to see this implemented.
Right now I can do it only in Interactive mode (with blocks starting with # %%), but this approach lacks of visual outputs I can have in notebooks. |
I also join the petition. I recently switched from JupyterLab to VSCode, and this is an especially useful feature that makes it easier the daily work. It is quite common that at a certain moment we want to do some test with the variables, etc. in the notebook, and it is a bit clumsy to have to create new cells and then delete them again, especially when it is something that can be done in seconds from the interactive shell. I think that all of us who work often with Jupyter Notebooks, would be very grateful if you could add this function. |
Yes please this is what I need! :) |
Cheers! Seems like I managed to find a workaround. (can use the Jupyter Notebook variables in the interactive window now. A bit of a process but imho worth it :D) The process
|
I have to try this, if it works it would be really wonderful. Thank you very much for sharing. |
Yes, quick and easy like how Jupyterlab does its console. Or Rstudio, or Matlab, or Spyder. I'm trying out vscode -- and like it for features other than this -- but I'm really missing this fairly standard type of console. |
@philffm Thats cool! Just what I needed. Now if we can do the same dance but without having to start the Jupyter server separately... All within VSCode, please! I mean, sometimes it is definitely nice to have the remote server option but dealing with VSCode only will make life so easy. |
duplicate of #4573 |
From discussion with @greazer @rchiodo @claudiaregio @rebornix
Existing feature requests:
Proposed experience:
notebook/cell/title
to open interactive window connected to same kernelinteractive/cell/title
to paste code back into notebookBare-bones prototype:

Open questions
Engineering notes:
VSCodeNotebookController
wrapper,IKernel
, and the cell execution codepath to allowIKernel
that is currently mapped to ajupyter-notebook
controller which has been selected for a givenjupyter-notebook
NotebookDocumentinteractive
controller that is selected for a giveninteractive
NotebookDocumentjupyter-notebook
notebookType and once for theinteractive
notebookTypekernelProvider.getOrCreate
notebook.selectKernel
or similar after the window is created, but we've discussed this and decided not to do it). NotebookDocument is returned frominteractive.open
, so given thejupyter-notebook
controller currently selected for a Jupyter notebook, we need to find the matchinginteractive
controller that we told VS Code about, and make sure that the underlying kernel is reusedjupyter-notebook
andinteractive
notebookTypes (not guaranteed to work OOB)The text was updated successfully, but these errors were encountered: