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

Reload cell code without restarting server #401

Open
dannongruver opened this issue Apr 4, 2024 · 2 comments
Open

Reload cell code without restarting server #401

dannongruver opened this issue Apr 4, 2024 · 2 comments

Comments

@dannongruver
Copy link

Problem

Currently when executing a cell via kernel_gateway.notebook_http mode, the cell's code/logic stays the same even when changing the cell after starting the kernel_gateway.

For example, if kernel_gateway starts and the cell's content is...

# GET /hello/world
print(f"hello")

...then calling http://127.0.0.1/hello/world gives hello response. If that cell changes to...

# GET /hello/world
print(f"new change")

...and the kernel_gateway isn't restarted then http://127.0.0.1/hello/world responds with hello still instead of new change

Proposed Solution

Monitor for file changes and reload the cell's code.

Copy link

welcome bot commented Apr 4, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@dannongruver
Copy link
Author

Is there a way to restart the server without killing the process?

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

1 participant