Open BaraGhuleTrum opened 2 years ago
I'm observing same issue, similar command string:
voila --debug --enable_nbextensions=True --VoilaConfiguration.file_whitelist="['.*\.(png|jpg|gif|svg|mp4|avi|ogg|js|woff)']" \
--Voila.tornado_settings=$'{"headers":{"Content-Security-Policy":"frame-ancestors *;" }}' \
--VoilaConfiguration.preheat_kernel=False \
runner.ipynb
Not doing partial pre-render, just going straight into my app.
Well. To be completely honest, this bug appears not only in partial pre-render, as I figured out later.
Description
As investigations showed, it happening because of tornado==6.2. Downgrading to 6.1 - solving problem.
Reproduce
Run voila in preheated-mode with partially pre-render (get_query_string) method in .ipynb file Run command:
voila --enable_nbextensions=True --no-browser \ --Voila.ip='0.0.0.0' \ --Voila.port=8866 \ --Voila.tornado_settings="{'allow_origin': '*'}" \ --VoilaConfiguration.file_whitelist="['*']" \ --preheat_kernel=True \ --MappingKernelManager.cull_interval=60 \ --MappingKernelManager.cull_idle_timeout=120 \ --pool_size=5 \ test_ws.ipynb
test_ws.ipynb file: from voila.utils import get_query_string query_string = get_query_string() from test_ws_app import *
See error in logs.
Expected behavior
Working properly
Context
Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft- linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Mar 2 0 0:30:59 UTC 2022
Troubleshoot Output
Command Line Output
Browser Output
If using JupyterLab
Installed Labextensions