Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

403 GET /voila/static/jupyter-flex-embed.css: jupyter-flex-embed.css is not in root static directory #184

Open
jmp75 opened this issue May 13, 2024 · 1 comment

Comments

@jmp75
Copy link

jmp75 commented May 13, 2024

Relates to other relatively recent issues. I am trying to run examples using the dev mode, marginally hoping to figure out a fix.

Using the codebase at commit 7013993fcf910591196faeb725d5482b37adad8a april 2024

Following the guidelines as written in CONTRIBUTING.md, using task and hatch

From the newly created (jupyter-flex) virtual environnment, in the examples subfolder, task voila-examples launches:
voila --template flex --VoilaConfiguration.file_whitelist '.*'

Any of the notebooks available get stuck on ... building dashboard ...

403 GET /voila/static/jupyter-flex-embed.css (127.0.0.1): jupyter-flex-embed.css is not in root static directory
403 GET /voila/static/jupyter-flex-embed.css (127.0.0.1) 0.68ms
403 GET /voila/static/jupyter-flex-embed.css (127.0.0.1): jupyter-flex-embed.css is not in root static directory
403 GET /voila/static/jupyter-flex-embed.css (127.0.0.1) 0.85ms
404 GET /api/kernels?1715585460785 (127.0.0.1) 0.27ms
[Voila] WARNING | Notebook iris-clustering.ipynb is not trusted
[Voila] Kernel started: 44458986-ffe1-4081-94d2-614937680a35
Could not open static file '/usr/share/jupyter/nbconvert/templates/base/static/jupyter-flex-embed.css'
404 GET /voila/templates/flex/static/jupyter-flex-embed.css (127.0.0.1) 0.98ms
Could not open static file '/usr/share/jupyter/nbconvert/templates/base/static/jupyter-flex-embed.js'
404 GET /voila/templates/flex/static/jupyter-flex-embed.js (127.0.0.1) 1.00ms

The python environment created includes the following packages:

ipython==8.24.0
ipywidgets==8.1.2
Jinja2==3.1.4
jupyter_core==5.7.2
jupyter_server==2.14.0
nbclient==0.7.4
nbconvert==7.16.4
voila==0.5.6
@jmp75
Copy link
Author

jmp75 commented May 13, 2024

Note that other custom dashboard templates such as voila-material seem to work fine on the example notebooks.

using a separate mamba activate my_environment (albeit with voila 0.4.4)

voila --template material --VoilaConfiguration.file_whitelist '.*' nba-scoring.ipynb

A note, which may be a red herring, unrelated to the above issue, but while the dashboard seems to work, the comman dline reports

404 GET /voila/files/voila/jupyterlab-plotly.js (127.0.0.1) 0.40ms

This is despite installing mamba install plotly jupyterlab-plotly-extension

The python package jupyter-flex seems to have the same type of material under ./python/share/jupyter/nbconvert/templates/flex/static/ as voila-material. Note that jupyter-flex-embed.css and jupyter-flex-embed.js seem to be generated by the build process (not commited). Why the css and js template resources are not found the same way is beyond me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant