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

server-extension not picking up changes #260

Open
ghost opened this issue Nov 15, 2023 · 4 comments
Open

server-extension not picking up changes #260

ghost opened this issue Nov 15, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Nov 15, 2023

Okay, I am not sure if it's a bug or my lack of knowledge, so apologies upfront.

Usually we restart kernel to jupyterlab to pick up changes in our python packages, however in case of server-extension sample there is no kernel and when I make changes to requests, they are not picked up with browser refresh. My solution is running jupyter lab again. I did install it in editable mode tho as on Readme file.

Could you please tell me how can I have my server-extension python changes working without re-running jupyter lab?

@ghost ghost added the bug Something isn't working label Nov 15, 2023
@fcollonval fcollonval added documentation Improvements or additions to documentation and removed bug Something isn't working labels Nov 16, 2023
@fcollonval
Copy link
Member

It is not possible.

@jtpio
Copy link
Member

jtpio commented Nov 24, 2023

Maybe using the --autoreload flag when starting JupyterLab can slightly help? I was added to Jupyter Server in jupyter-server/jupyter_server#380.

Although it's more or a less equivalent to stopping JupyterLab and running jupyter lab again.

@joaopalmeiro
Copy link
Contributor

Hi! 👋

Just to complement, if that's okay, I currently launch JupyterLab via jupyter lab --autoreload --no-browser to facilitate my workflow when developing server extensions.

I think it would be interesting to document this command (or a similar one). What do you think?

@jtpio
Copy link
Member

jtpio commented Dec 19, 2024

I think it would be interesting to document this command (or a similar one). What do you think?

Sure, if you feel like opening a PR please do, thanks!

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

No branches or pull requests

3 participants