jupyterlab / extension-examples

JupyterLab Extensions by Examples
BSD 3-Clause "New" or "Revised" License
439 stars 167 forks source link

server-extension not picking up changes #260

Open terlan4 opened 7 months ago

terlan4 commented 7 months ago

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?

fcollonval commented 7 months ago

It is not possible.

jtpio commented 7 months ago

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

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