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

Send command: restart kernel and run all? #48

Open
ferdinandyb opened this issue Jan 12, 2023 · 3 comments
Open

Send command: restart kernel and run all? #48

ferdinandyb opened this issue Jan 12, 2023 · 3 comments

Comments

@ferdinandyb
Copy link

I would like to be able to send a command that restarts the kernel and runs the entire notebook. Is this currently possible?

@zplizzi
Copy link
Contributor

zplizzi commented Jan 20, 2023

We have separately implemented the restart and execute_all commands, you can execute the requests with the files in this folder: https://github.com/untitled-ai/jupyter_ascending/tree/main/jupyter_ascending/requests. You should be able to chain these together from wherever you're calling it from.

Let me know if this solves your issue!

@ferdinandyb
Copy link
Author

ferdinandyb commented Jan 20, 2023 via email

@zplizzi
Copy link
Contributor

zplizzi commented Jan 22, 2023

Ah that's a good point, the server will go down after the restart command and probably fail to handle the run all command properly. One quick fix would just be to add like a 10 second delay between the two. But yeah likely there's a way to implement a unified command - I'd be happy to review a PR if anyone wants to try to get this working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants