Skip to content

Reload cell code without restarting server #401

Open
@dannongruver

Description

@dannongruver

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions