JupyterLab v4.0.6
/srv/conda/envs/notebook/share/jupyter/labextensions
jupyter-offlinenotebook v0.2.2 enabled X
jupyterlab_pygments v0.2.2 enabled X (python, jupyterlab_pygments)
@jupyter-widgets/jupyterlab-manager v5.0.7 enabled X (python, jupyterlab_widgets)
@jupyter-server/resource-usage v0.7.1 enabled X (python, jupyter-resource-usage)
@voila-dashboards/jupyterlab-preview v2.3.4 enabled OK (python, voila)
The following extensions are outdated:
jupyter-offlinenotebook
jupyterlab_pygments
@jupyter-widgets/jupyterlab-manager
@jupyter-server/resource-usage
Consider checking if an update is available for these packages.
Description
The demo repository I have made to present this issue: https://github.com/ollyhensby/voila-pdf-view-demo I've created a binder for it: https://mybinder.org/v2/gh/ollyhensby/voila-pdf-view-demo/main?labpath=demo.ipynb
PDF files can be viewed in IFrame in Jupyterlab but not when using Voila![image](https://github.com/voila-dashboards/voila/assets/79875276/e958a022-c53b-4077-9fcb-d37a443bcc19)
I also have a
voila.json
to define the VoilaConfiguration I want to allow PDFs. It's defined as follows:Just as a note, it DOES work in Voila if I run
voila demo.ipynb
locally. It seems that it's the voila preview not working.Reproduce
view_pdf_file.ipynb
Expected behavior
Expect the PDF file to load successfully as it does in Jupyterlab.
Context
Troubleshoot Output
If using JupyterLab
Installed Labextensions