Skip to content
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

Add option for creating interactive console connected to the notebook kernel #6033

Closed
sztal opened this issue May 28, 2021 · 3 comments
Closed
Assignees

Comments

@sztal
Copy link

sztal commented May 28, 2021

It would be a killer feature to have the functionality (which is already available in Jupyter Lab) to create interactive Python consoles connected to specific notebook kernels. The main usecase is to be able to work interactively based on the state of a notebook without having to tinker with the notebook itself.

I am speaking of this feature (from Jupyter lab)

You can connect a code console to a notebook kernel to have a log of computations done in the kernel, in the order in which they were done. The attached code console also provides a place to interactively inspect kernel state without changing the notebook. Right-click on a notebook and select “New Console for Notebook”:

(from the official documentation)

EDIT.
This may be related to #1278 , but I think the two requests are slightly different (in this case setting a breakpoint should not be needed).

@joyceerhl
Copy link
Contributor

Thanks for the suggestion. Does #4573 cover your use case?

@sztal
Copy link
Author

sztal commented May 31, 2021

Hmm, I must say I am nost sure. I am not familiar with the idea of "scratchpad" notebooks, but I think that the feature described there is more complicated than what I am suggesting. Here the idea is not to have a parallel "scratchpad" notebook (which would keep track of code in cells/chunks etc.) but just to have an ability to launch an IPython shell (within VS Code) which is binded to the kernel of a specific notebook (so all objects defined in the notebook are accessible there etc.).

My hunch is that it could be realized by spawning a Python Interactive window connected to a specific kernel, but if for some reason it may be only implemented via some notebook-like interface then I think the scratchpad would do too (although it still seems to me a bit of an overkill in regard to my particular usecase).

But whatever you decide to do about it thanks for the great work! You made data analysis with Python really great :)

@greazer
Copy link
Member

greazer commented Jun 3, 2021

Thanks for the feedback. I think #4573 at least comes close to what you're looking for. Once we start moving more seriously along that path, we will end up with something that can work for your scenario.

@greazer greazer closed this as completed Jun 3, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants