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

Extension for POST Execute cell #1123

Closed
Wh1isper opened this issue Dec 7, 2022 · 3 comments
Closed

Extension for POST Execute cell #1123

Wh1isper opened this issue Dec 7, 2022 · 3 comments

Comments

@Wh1isper
Copy link
Contributor

Wh1isper commented Dec 7, 2022

Problem

Jupyter has been plaguing us with the problem of saving code output using the front-end for too long.

There is a lot of discussion about this here

jupyterlab/jupyterlab#12455
jupyterlab/jupyterlab#12867
jupyterlab/jupyterlab#2833
jupyter/notebook#641

Proposed Solution

Thanks to contributors, with JupyterLab 4.0 using y-crdt related features, we already have the ability to read changes from files, and the next step is to let the Jupyter server take over the responsibility of writing code execution results.

To validate this idea, I implemented a simple generic client based on the websocket interface (I tried using jupyter_client's zmq interface, but it was hard to use), and then implemented a plugin with fileid support to implement this functionality.

client: https://github.com/Wh1isper/jupyter_kernel_client
extension: https://github.com/Wh1isper/jupyter_kernel_executor

Time is short, there is still a lot of content not perfect, looking forward to your suggestions

Additional context

I was inspired by the following projects and issues

#900

https://github.com/jupyter-server/jupyverse/
https://github.com/jupyter-server/jupyter_server_fileid
https://github.com/jupyter/nbformat

@Wh1isper
Copy link
Contributor Author

Wh1isper commented Dec 9, 2022

jupyterlab-co-ex2
jupyterlab-co-ex

In Jupyterlab 4, we can execute code and save result in back-end 😄

@gogobd
Copy link

gogobd commented Dec 13, 2022

This looks very promising, thank you for your work!

@Wh1isper
Copy link
Contributor Author

Sorry guys, I don't have time to work on Jupyter related things anymore due to a change in work.

I've put my thoughts here, and you can also use the same issue to get an idea of what the Jupyter-server project team is doing at the moment.

I'll keep an eye on the this in my spare time, feel free to invite me to any relevant discussions as well.

Issue: #1274
My comment: #1274 (comment)

Thank you all!

@Wh1isper Wh1isper closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants