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

403 GET /voila/files/None (127.0.0.1): File not allowlisted #1474

Open
rblcoder opened this issue Jun 9, 2024 · 4 comments
Open

403 GET /voila/files/None (127.0.0.1): File not allowlisted #1474

rblcoder opened this issue Jun 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rblcoder
Copy link

rblcoder commented Jun 9, 2024

Description

When I run a jupyter notebook using voila jupyter_notebook.ipynb which has ipywidgets, I get
403 GET /voila/files/None (127.0.0.1): File not allowlisted

Reproduce

Run a jupyter notebook using voila jupyter_notebook.ipynb which has ipywidgets

Expected behavior

The example here https://github.com/voila-dashboards/voila shows it should work with ipywidgets

Context

Installed the latest version of voila using pip install voila
Also, I am using Github codespaces.
I have changed
~/.jupyter/jupyter_notebook_config.py to add

c.NotebookApp.ip = '*'
c.NotebookApp.allow_origin = '*'

and
~/.jupyter/jupyter_server_config.py:

c.ServerApp.allow_origin = '*'
c.ServerApp.allow_remote_access = True
@rblcoder rblcoder added the bug Something isn't working label Jun 9, 2024
@joshy
Copy link

joshy commented Jun 28, 2024

I have got the same problem, the page is empty. I am running voila with systemd. Example notebook is the basics one: https://github.com/voila-dashboards/voila/blob/main/notebooks/basics.ipynb. Any help is highly appreciated.

Installed libs are (from the production setup):

aiofiles==22.1.0
aiosqlite==0.18.0
ansiwrap==0.8.4
anyio==3.6.2
anywidget==0.9.0
appdirs==1.4.4
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arrow==1.2.3
asttokens==2.2.1
async-lru==2.0.4
attrs==22.2.0
autopep8==2.0.2
Babel==2.11.0
backcall==0.2.0
beautifulsoup4==4.11.2
black==23.3.0
bleach==6.0.0
Brotli==1.0.9
certifi==2024.6.2
cffi==1.15.1
cfgv==3.3.1
charset-normalizer==3.0.1
click==8.1.3
comm==0.2.2
contourpy==1.0.7
cryptography==39.0.1
cssselect2==0.7.0
cx-Oracle==8.3.0
cycler==0.11.0
debugpy==1.6.6
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.6
entrypoints==0.4
et-xmlfile==1.1.0
exceptiongroup==1.2.1
executing==1.2.0
fastjsonschema==2.16.2
filelock==3.11.0
fonttools==4.39.3
fqdn==1.5.1
greenlet==2.0.1
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
identify==2.5.22
idna==3.4
install==1.3.5
ipykernel==6.21.1
ipython==8.9.0
ipython-genutils==0.2.0
ipywidgets==8.1.3
isoduration==20.11.0
isort==5.12.0
itables==1.5.2
jedi==0.18.2
Jinja2==3.1.2
json5==0.9.11
jsonpointer==2.3
jsonschema==4.19.1
jsonschema-specifications==2023.7.1
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter-ydoc==0.2.3
jupyter_client==8.6.2
jupyter_core==5.2.0
jupyter_server==2.14.1
jupyter_server_fileid==0.6.0
jupyter_server_terminals==0.4.4
jupyter_server_ydoc==0.8.0
jupyterlab==4.2.3
jupyterlab-pygments==0.2.2
jupyterlab_server==2.27.2
jupyterlab_widgets==3.0.11
kiwisolver==1.4.4
lxml==4.9.2
MarkupSafe==2.1.2
matplotlib==3.7.1
matplotlib-inline==0.1.6
mistune==2.0.5
munkres==1.1.4
mypy-extensions==1.0.0
nb-clean==3.2.0
nbclassic==0.5.1
nbclient==0.7.2
nbconvert==7.2.9
nbformat==5.9.2
nbqa==1.7.0
nest-asyncio==1.5.6
nodeenv==1.7.0
notebook==6.5.2
notebook_shim==0.2.2
numpy==1.24.2
openpyxl==3.1.2
overrides==7.4.0
packaging==23.0
pandas==2.1.1
pandocfilters==1.5.0
papermill==2.4.0
parso==0.8.3
pathspec==0.11.1
pexpect==4.8.0
pickleshare==0.7.5
Pillow==9.5.0
platformdirs==3.0.0
playwright==1.30.0
polars==0.20.23
pre-commit==3.2.2
prometheus-client==0.16.0
prompt-toolkit==3.0.36
psutil==5.9.4
psycopg2-binary==2.9.7
psygnal==0.11.0
ptyprocess==0.7.0
pure-eval==0.2.2
pyarrow==15.0.0
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycodestyle==2.10.0
pycparser==2.21
pyee==9.0.4
Pygments==2.14.0
pymssql==2.2.7
pyobsplot==0.4.2
pyparsing==3.0.9
pyperclip==1.8.2
pyrsistent==0.19.3
python-dateutil==2.8.2
python-dotenv==1.0.0
python-json-logger==2.0.4
python-ldap==3.4.3
pytz==2022.7.1
PyYAML==6.0
pyzmq==25.0.0
referencing==0.30.2
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.10.3
ruff==0.0.246
scipy==1.10.1
seaborn==0.13.2
Send2Trash==1.8.2
six==1.16.0
sniffio==1.3.0
soupsieve==2.3.2.post1
SQLAlchemy==2.0.9
stack-data==0.6.2
tenacity==8.2.0
terminado==0.17.1
textwrap3==0.9.2
tinycss2==1.2.1
tokenize-rt==5.0.0
tomli==2.0.1
tornado==6.2
tqdm==4.64.1
traitlets==5.9.0
typing_extensions==4.4.0
tzdata==2023.3
uri-template==1.2.0
urllib3==1.26.14
virtualenv==20.21.0
voila==0.5.7
watchfiles==0.21.0
wcwidth==0.2.6
webcolors==1.12
webencodings==0.5.1
websocket-client==1.8.0
websockets==10.4
widgetsnbextension==4.0.11
xlrd==2.0.1
xmltodict==0.13.0
y-py==0.5.5
ypy-websocket==0.8.2
zopfli==0.2.2

@joshy
Copy link

joshy commented Jun 28, 2024

It is showing fine in jupyterlab. Now I tried the voila preview and I saw this message at the bottom:

File failed to load: https://jupyter.imaging.ms.uhbs.ch/static/nbclassic/components/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js

Maybe it is not the main reason...

@joshy
Copy link

joshy commented Jul 5, 2024

The problem happens only if voila is started with systemd. If voila is started directly everything works fine.

@ishmeals
Copy link

seems to be from here

<!-- Load mathjax -->
    <script src="None?config=None"> </script>

Why does this happen? Are there extra steps to enable MathJax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants