voila-dashboards / voila

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

specifying tornado settings in cmdline #1407

Open eyalk11 opened 8 months ago

eyalk11 commented 8 months ago

Description

Probably not your bug strictly, but I tried a lot of things. I want to change tornado settings ,and every time I tried (i.e.):

C:\Users\ekarni\.pyenv\pyenv-win\versions\3.10\python.EXE -m voila  --Voila.tornado_settings `{"allow_origin":"*","disable_check_xsrf":"true"`} defaultnotebook.ipynb

I get:

[Voila] CRITICAL | Bad config encountered during initialization: The 'tornado_settings' trait of a Voila instance expected a dict, not the list ['`{"allow_origin":"*","disable_check_xsrf"'].

Voila 0.4.3. The `} is because of powershell . But didn't work in cmd without it. Also didn't work in Voila 0.5.4.