voila-dashboards / voila

Voilà turns Jupyter notebooks into standalone web applications
https://voila.readthedocs.io
Other
5.43k stars 504 forks source link

jupyter-server-proxy labextension creates an error in the console #1499

Open dfguerrerom opened 2 days ago

dfguerrerom commented 2 days ago

Description

jupyter-server-proxy labextension creates an error in the console

Reproduce

Install voila and install jupyter-server-proxy, start a voila app and the console will prompt the following error:

Screenshot from 2024-10-14 16-38-28

I would like to know why does it happen? is it an error coming from that package itself? or is it coming from somewhere else?

Expected behavior

It shouldn't show any error

Context

martinRenou commented 2 days ago

I would like to know why does it happen? is it an error coming from that package itself? or is it coming from somewhere else?

This is because the jupyter-server-proxy has a jupyterlab extension that adds buttons and features to the jupyterlab filebrowser.

On the other side, voila is a JupyterLab-like application that loads all jupyterlab extensions, even the one from jupyter-server-proxy, but that one cannot load because the filebrowser is missing.

It should not prevent Voila to run though.

dfguerrerom commented 2 days ago

do you think it's worth disabling this extension here? https://github.com/voila-dashboards/voila/blob/f1722f46811a244b138f08bf6af02647890a6afd/voila/utils.py#L119