widgetti / ipyvuetify

Jupyter widgets based on vuetify UI components
MIT License
344 stars 59 forks source link

Error Tutorial - launching voilà #109

Closed julienguegan closed 3 years ago

julienguegan commented 3 years ago

Hello,

I am trying to run the tutorial. I successfully installed vuetify and the notebook run without any issue but when I am trying to run voilà, I have this error that appear in my anaconda prompt (and on the web page, I have 505 internal error). Do you know from where it can come ? Did I miss something or do I need to install something ?

(base) C:\Users\julien.LAPTOP-V4T667QN\Desktop\ipywidget-tutorial>voila --template vuetify-default --enable_nbextensions=True ./notebooks/08.02-voila-vuetify.ipynb [Voila] Using C:\Users\JULIEN~1.LAP\AppData\Local\Temp to store connection files [Voila] Storing connection files in C:\Users\JULIEN~1.LAP\AppData\Local\Temp\voila_csvl5po8. [Voila] Serving static files from c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\voila\static. [Voila] Voilà is running at: http://localhost:8866/ ERROR:tornado.application:Uncaught exception GET / (::1) HTTPServerRequest(protocol='http', host='localhost:8866', method='GET', uri='/', version='HTTP/1.1', remote_ip='::1') Traceback (most recent call last): File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\tornado\web.py", line 1703, in _execute result = await result File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\voila\handler.py", line 154, in get async for html_snippet, resources in self.exporter.generate_from_notebook_node(notebook, resources=resources, extra_context=extra_context): File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\voila\exporter.py", line 100, in generate_from_notebook_node async for output in self.template.generate_async(nb=nb_copy, resources=resources, **extra_context, static_url=self.static_url): File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\nbconvert\exporters\templateexporter.py", line 148, in template self._template_cached = self._load_template() File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\nbconvert\exporters\templateexporter.py", line 355, in _load_template return self.environment.get_template(template_file) File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\jinja2\environment.py", line 883, in get_template return self._load_template(name, self.make_globals(globals)) File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\jinja2\environment.py", line 857, in _load_template template = self.loader.load(self, name, globals) File "c:\users\julien.laptop-v4t667qn\anaconda3\lib\site-packages\jinja2\loaders.py", line 429, in load raise TemplateNotFound(name) jinja2.exceptions.TemplateNotFound: index.html.j2 ERROR:tornado.access:500 GET / (::1) 314.43ms WARNING:tornado.general:403 GET /voila/files/favicon.ico (::1): File not whitelisted WARNING:tornado.access:403 GET /voila/files/favicon.ico (::1) 2.00ms

Thank you for your help

mariobuikhuizen commented 3 years ago

Can you post your environment here?

conda env export

Are you talking about the tutorial on voila-vuetify: https://github.com/voila-dashboards/voila-vuetify/blob/master/README.md?

julienguegan commented 3 years ago

Actually I found the notebook here (firstly discover by looking a scipy conference). I run conda env export but I am in my (base) environment and I have many thing not related to voilà (I know it is bad, and that I should do a env I guss) :


channels:
  - anaconda
  - willyd
  - conda-forge
  - defaults
dependencies:
  - _anaconda_depends=2020.02=py37_0
  - _ipyw_jlab_nb_ext_conf=0.1.0=py37_0
  - _tflow_select=2.1.0=gpu
  - alabaster=0.7.12=py_0
  - altair=4.1.0=py_1
  - anaconda=custom=py37_1
  - anaconda-client=1.7.2=py_0
  - anaconda-navigator=1.9.7=py37_0
  - anaconda-project=0.8.3=py_0
  - argh=0.26.2=py37_1001
  - asn1crypto=1.3.0=py37_0
  - astroid=2.3.3=py37_1
  - astropy=3.2.1=py37he774522_0
  - atomicwrites=1.3.0=py_0
  - attrs=19.3.0=py_0
  - autopep8=1.4.4=py_0
  - babel=2.8.0=py_0
  - backcall=0.1.0=py_0
  - backports=1.0=py_2
  - backports.functools_lru_cache=1.6.1=py_0
  - backports.os=0.1.1=py37_0
  - backports.shutil_get_terminal_size=1.0.0=py_3
  - backports.tempfile=1.0=py_0
  - backports.weakref=1.0.post1=py37hc8dfbb8_1001
  - bcrypt=3.1.7=py37h8055547_1
  - beautifulsoup4=4.9.0=py37hc8dfbb8_0
  - bitarray=1.2.1=py37h4ab8f01_1
  - bkcharts=0.2=py37_0
  - blas=1.0=mkl
  - bleach=3.1.4=pyh9f0ad1d_0
  - blosc=1.18.1=h6538335_0
  - bokeh=1.3.4=py37_0
  - boto=2.49.0=py_0
  - bottleneck=1.2.1=py37h452e1ab_1
  - brotlipy=0.7.0=py37h4ab8f01_1000
  - bzip2=1.0.8=hfa6e2cd_2
  - ca-certificates=2020.11.8=h5b45459_0
  - certifi=2020.11.8=py37h03978a9_0
  - cffi=1.14.0=py37ha419a9e_0
  - chardet=3.0.4=py37hc8dfbb8_1006
  - click=7.1.1=pyh8c360ce_0
  - cloudpickle=1.3.0=py_0
  - clyent=1.2.2=py_1
  - colorama=0.4.3=py_0
  - comtypes=1.1.7=py37hc8dfbb8_1001
  - conda=4.9.2=py37h03978a9_0
  - conda-build=3.18.9=py37_3
  - conda-env=2.6.0=1
  - conda-package-handling=1.6.0=py37h702c6c1_2
  - conda-verify=3.4.2=py_1
  - console_shortcut=0.1.1=3
  - contextlib2=0.6.0.post1=py_0
  - cryptography=2.8=py37hb32ad35_1
  - cudatoolkit=10.2.89=h74a9793_0
  - curl=7.69.1=h1dcc11c_0
  - cycler=0.10.0=py_2
  - cython=0.29.16=py37h63f7a3c_0
  - cytoolz=0.10.1=py37hfa6e2cd_0
  - dask=2.5.2=py_0
  - dask-core=2.5.2=py_0
  - decorator=4.4.2=py_0
  - defusedxml=0.6.0=py_0
  - diff-match-patch=20181111=py_0
  - distributed=2.5.2=py_0
  - docutils=0.16=py37hc8dfbb8_1
  - entrypoints=0.3=py37hc8dfbb8_1001
  - et_xmlfile=1.0.1=py_1001
  - fastcache=1.1.0=py37h8055547_1
  - filelock=3.0.10=py_0
  - flake8=3.7.9=py37hc8dfbb8_1
  - flask=1.1.2=pyh9f0ad1d_0
  - freetype=2.10.1=ha9979f8_0
  - fsspec=0.7.2=py_0
  - future=0.18.2=py37hc8dfbb8_1
  - get_terminal_size=1.0.0=h38e98db_0
  - gevent=1.5.0=py37h4ab8f01_0
  - git=2.23.0=h6bb4b03_0
  - glob2=0.7=py_0
  - greenlet=0.4.15=py37h8055547_1
  - h5py=2.9.0=py37h5e291fa_0
  - hdf5=1.10.4=nompi_hcc15c50_1106
  - heapdict=1.0.1=py_0
  - html5lib=1.0.1=py_0
  - hypothesis=5.10.0=py_0
  - icc_rt=2019.0.0=h0cc432a_1
  - icu=64.2=he025d50_1
  - idna=2.9=py_1
  - imageio=2.6.0=py37_0
  - imagesize=1.2.0=py_0
  - importlib-metadata=1.6.0=py37hc8dfbb8_0
  - importlib_metadata=1.6.0=0
  - intel-openmp=2019.4=245
  - intervaltree=3.0.2=py_0
  - ipykernel=5.2.1=py37h5ca1d4c_0
  - ipython=7.13.0=py37hc8dfbb8_2
  - ipython_genutils=0.2.0=py_1
  - ipywidgets=7.5.1=py_0
  - isort=4.3.21=py37hc8dfbb8_1
  - itsdangerous=1.1.0=py_0
  - jdcal=1.4.1=py_0
  - jedi=0.15.2=py37_0
  - jinja2=2.11.2=pyh9f0ad1d_0
  - joblib=0.14.1=py_0
  - jpeg=9c=hfa6e2cd_1001
  - json5=0.9.0=py_0
  - jsonschema=3.2.0=py37hc8dfbb8_1
  - jupyter_console=6.1.0=py_1
  - jupyter_core=4.6.3=py37hc8dfbb8_1
  - jupyterlab=2.1.0=py_0
  - jupyterlab_server=1.1.1=py_0
  - keras-applications=1.0.8=py_0
  - keras-preprocessing=1.1.0=py_1
  - keyring=21.1.1=py37hc8dfbb8_2
  - kiwisolver=1.2.0=py37heaa310e_0
  - krb5=1.17.1=hdd46e55_0
  - lazy-object-proxy=1.4.3=py37h8055547_2
  - libarchive=3.3.3=h0c0e0cf_1008
  - libblas=3.8.0=14_mkl
  - libcblas=3.8.0=14_mkl
  - libcurl=7.69.1=h1dcc11c_0
  - libiconv=1.15=hfa6e2cd_1006
  - liblapack=3.8.0=14_mkl
  - liblief=0.9.0=ha925a31_3
  - libpng=1.6.37=hfe6a214_1
  - libprotobuf=3.11.4=h7bd577a_0
  - libsodium=1.0.17=h2fa13f4_0
  - libspatialindex=1.9.3=he025d50_3
  - libssh2=1.8.2=h642c060_2
  - libtiff=4.1.0=h885aae3_6
  - libxml2=2.9.10=h9ce36c8_0
  - libxslt=1.1.33=heafd4d3_0
  - llvmlite=0.29.0=py37ha925a31_0
  - locket=0.2.0=py_2
  - lxml=4.5.0=py37h7005714_1
  - lz4-c=1.9.2=h33f27b4_0
  - lzo=2.10=hfa6e2cd_1000
  - m2w64-gcc-libgfortran=5.3.0=6
  - m2w64-gcc-libs=5.3.0=7
  - m2w64-gcc-libs-core=5.3.0=7
  - m2w64-gmp=6.1.0=2
  - m2w64-libwinpthread-git=5.0.0.4634.697f757=2
  - markdown=3.1.1=py37_0
  - markupsafe=1.1.1=py37h8055547_1
  - matplotlib=3.1.1=py37hc8f65d3_0
  - matplotlib-base=3.2.1=py37h911224e_0
  - mccabe=0.6.1=py_1
  - menuinst=1.4.16=py37he774522_0
  - mistune=0.8.4=py37h8055547_1001
  - mkl=2019.4=245
  - mkl-service=2.3.0=py37hfa6e2cd_0
  - mkl_fft=1.0.14=py37h14836fe_0
  - mkl_random=1.1.0=py37h675688f_0
  - mock=3.0.5=py37hc8dfbb8_1
  - more-itertools=8.2.0=py_0
  - mpmath=1.1.0=py_0
  - msgpack-python=1.0.0=py37heaa310e_1
  - msys2-conda-epoch=20160418=1
  - multipledispatch=0.6.0=py_0
  - navigator-updater=0.2.1=py37_0
  - nbformat=5.0.6=py_0
  - networkx=2.4=py_1
  - nltk=3.4.4=py_0
  - nodejs=13.12.0=0
  - nose=1.3.7=py37hc8dfbb8_1004
  - notebook=6.0.3=py37_0
  - numba=0.45.1=py37hf9181ef_0
  - numexpr=2.7.0=py37hdce8814_0
  - numpy-base=1.18.1=py37hc3f5095_1
  - numpydoc=0.9.2=py_0
  - olefile=0.46=py_0
  - openpyxl=3.0.3=py_0
  - openssl=1.1.1h=he774522_0
  - packaging=20.1=py_0
  - pandas=0.25.1=py37ha925a31_0
  - pandoc=2.9.2.1=0
  - pandocfilters=1.4.2=py_1
  - paramiko=2.7.1=py37_0
  - parso=0.5.2=py_0
  - partd=1.1.0=py_0
  - path=13.1.0=py37_0
  - path.py=12.4.0=0
  - pathlib2=2.3.5=py37hc8dfbb8_1
  - pathtools=0.1.2=py_1
  - patsy=0.5.1=py37_0
  - pep8=1.7.1=py_0
  - pexpect=4.8.0=py37hc8dfbb8_1
  - pickleshare=0.7.5=py37hc8dfbb8_1001
  - pillow=7.1.1=py37h91e7a8d_0
  - pip=20.0.2=py_2
  - pkginfo=1.5.0.1=py_0
  - pluggy=0.12.0=py_0
  - ply=3.11=py_1
  - powershell_shortcut=0.0.1=2
  - prometheus_client=0.7.1=py_0
  - prompt-toolkit=3.0.5=py_0
  - prompt_toolkit=3.0.5=0
  - psutil=5.7.0=py37h8055547_1
  - py=1.8.1=py_0
  - py-lief=0.9.0=py37ha925a31_3
  - pycodestyle=2.5.0=py_0
  - pycosat=0.6.3=py37h8055547_1004
  - pycparser=2.20=py_0
  - pycrypto=2.6.1=py37h8055547_1004
  - pycurl=7.43.0.5=py37h636d3bd_0
  - pydocstyle=5.0.2=py_0
  - pyflakes=2.1.1=py37_0
  - pylint=2.4.4=py37_0
  - pynacl=1.3.0=py37h2fa13f4_1001
  - pyodbc=4.0.30=py37h6538335_0
  - pyopenssl=19.1.0=py_1
  - pyparsing=2.4.7=pyh9f0ad1d_0
  - pyqt=5.9.2=py37h6538335_4
  - pyreadline=2.1=py37_1001
  - pyrsistent=0.16.0=py37h8055547_0
  - pysocks=1.7.1=py37hc8dfbb8_1
  - pytables=3.5.2=py37h1da0976_1
  - pytest=5.4.1=py37hc8dfbb8_0
  - pytest-arraydiff=0.3=py37h39e3cac_0
  - pytest-astropy=0.5.0=py37_0
  - pytest-astropy-header=0.1.2=py_0
  - pytest-doctestplus=0.4.0=py_0
  - pytest-openfiles=0.4.0=py_0
  - pytest-remotedata=0.3.1=py_0
  - python=3.7.4=h5263a28_0
  - python-dateutil=2.8.1=py_0
  - python-jsonrpc-server=0.3.4=py_0
  - python-language-server=0.31.10=py37hc8dfbb8_0
  - python-libarchive-c=2.9=py37_0
  - python_abi=3.7=1_cp37m
  - pytz=2019.3=py_0
  - pywavelets=1.1.1=py37h3a3b6f7_3
  - pywin32=227=py37hfa6e2cd_0
  - pywin32-ctypes=0.2.0=py37hc8dfbb8_1001
  - pywinpty=0.5.7=py37_0
  - pyyaml=5.3.1=py37h8055547_0
  - pyzmq=19.0.0=py37h8c16cda_1
  - qdarkstyle=2.8.1=pyh9f0ad1d_0
  - qt=5.9.7=h506e8af_3
  - qtawesome=0.7.1=pyh9f0ad1d_0
  - qtconsole=4.7.3=pyh9f0ad1d_0
  - qtpy=1.9.0=py_0
  - requests=2.23.0=pyh8c360ce_2
  - rope=0.16.0=py_0
  - rtree=0.9.4=py37h804a536_1
  - ruamel_yaml=0.15.80=py37h8055547_1001
  - scikit-image=0.15.0=py37ha925a31_0
  - scikit-learn=0.21.3=py37h6288b17_0
  - seaborn=0.9.0=py37_0
  - send2trash=1.5.0=py_0
  - setuptools=46.1.3=py37hc8dfbb8_0
  - simplegeneric=0.8.1=py_1
  - singledispatch=3.4.0.3=py37_1000
  - sip=4.19.8=py37h6538335_0
  - six=1.14.0=py_1
  - snappy=1.1.8=he025d50_1
  - snowballstemmer=2.0.0=py_0
  - sortedcollections=1.1.2=py_0
  - sortedcontainers=2.1.0=py_0
  - soupsieve=1.9.4=py37hc8dfbb8_1
  - sphinx=3.0.2=py_0
  - sphinxcontrib=1.0=py37_1
  - sphinxcontrib-applehelp=1.0.2=py_0
  - sphinxcontrib-devhelp=1.0.2=py_0
  - sphinxcontrib-htmlhelp=1.0.3=py_0
  - sphinxcontrib-jsmath=1.0.1=py_0
  - sphinxcontrib-qthelp=1.0.3=py_0
  - sphinxcontrib-serializinghtml=1.1.4=py_0
  - sphinxcontrib-websupport=1.2.1=pyh9f0ad1d_0
  - spyder=4.1.2=py37hc8dfbb8_0
  - spyder-kernels=1.9.0=py37hc8dfbb8_0
  - sqlalchemy=1.3.16=py37h8055547_0
  - sqlite=3.30.1=hfa6e2cd_0
  - statsmodels=0.10.1=py37h8c2d366_0
  - sympy=1.5.1=py37hc8dfbb8_3
  - tbb=2020.1=he980bc4_0
  - tblib=1.6.0=py_0
  - tensorflow=1.13.1=h21ff451_7
  - tensorflow-base=1.13.1=py37_7
  - terminado=0.8.3=py37hc8dfbb8_1
  - testpath=0.4.4=py_0
  - tk=8.6.10=hfa6e2cd_0
  - toolz=0.10.0=py_0
  - tornado=6.0.4=py37hfa6e2cd_0
  - tqdm=4.45.0=pyh9f0ad1d_0
  - traitlets=4.3.3=py37hc8dfbb8_1
  - typed-ast=1.4.1=py37hfa6e2cd_0
  - ujson=1.35=py37h63f7a3c_1002
  - unicodecsv=0.14.1=py_1
  - urllib3=1.25.9=py_0
  - vc=14.1=h869be7e_1
  - vega_datasets=0.8.0=py_0
  - vs2015_runtime=14.16.27012=h30e32a0_2
  - watchdog=0.10.2=py37_0
  - wcwidth=0.1.9=pyh9f0ad1d_0
  - webencodings=0.5.1=py_1
  - werkzeug=1.0.1=pyh9f0ad1d_0
  - wheel=0.34.2=py_1
  - widgetsnbextension=3.5.1=py37_0
  - win_inet_pton=1.1.0=py37_0
  - win_unicode_console=0.5=py37_1000
  - wincertstore=0.2=py37_1003
  - winpty=0.4.3=4
  - wrapt=1.12.1=py37h8055547_1
  - xlrd=1.2.0=py_0
  - xlsxwriter=1.2.8=py_0
  - xlwings=0.18.0=py37hc8dfbb8_1
  - xlwt=1.3.0=py_1
  - xz=5.2.5=h2fa13f4_0
  - yaml=0.2.4=he774522_0
  - yapf=0.28.0=py_0
  - zeromq=4.3.2=h6538335_2
  - zict=2.0.0=py_0
  - zipp=3.1.0=py_0
  - zlib=1.2.11=h2fa13f4_1006
  - zstd=1.4.4=h9f78265_3
  - pip:
    - absl-py==0.8.1
    - ansi2html==1.6.0
    - appdirs==1.4.3
    - apptools==4.5.0
    - astor==0.8.0
    - astunparse==1.6.3
    - async-generator==1.10
    - audioread==2.1.8
    - bezier==2020.2.3
    - boto3==1.12.11
    - botocore==1.15.11
    - bqplot==0.12.19
    - branca==0.4.1
    - brotli==1.0.9
    - cachetools==3.1.1
    - cachey==0.2.1
    - colour==0.1.5
    - combo==0.1.0
    - configobj==5.0.6
    - dash==1.17.0
    - dash-core-components==1.13.0
    - dash-html-components==1.1.1
    - dash-renderer==1.8.3
    - dash-table==4.11.0
    - docopt==0.6.2
    - envisage==4.9.2
    - face-alignment==1.0.0
    - ffmpeg==1.4
    - flask-compress==1.8.0
    - flow==0.0.1
    - freetype-py==2.1.0.post1
    - gast==0.2.2
    - gensim==3.8.1
    - geojson==2.5.0
    - google-auth==1.7.1
    - google-auth-oauthlib==0.4.1
    - google-pasta==0.1.8
    - googledrivedownloader==0.4
    - gpxpy==1.4.2
    - grpcio==1.25.0
    - gym==0.15.4
    - imagecodecs==2020.2.18
    - imageio-ffmpeg==0.4.1
    - imutils==0.5.3
    - ipyleaflet==0.13.3
    - ipympl==0.5.8
    - ipyvue==1.4.1
    - ipyvuetify==1.5.1
    - jmespath==0.9.5
    - js2py==0.70
    - jupyter==1.0.0
    - jupyter-client==6.1.7
    - jupyter-contrib-core==0.3.3
    - jupyter-contrib-nbextensions==0.5.1
    - jupyter-dash==0.3.1
    - jupyter-highlight-selected-word==0.2.0
    - jupyter-latex-envs==1.4.6
    - jupyter-nbextensions-configurator==0.4.1
    - jupyter-server==1.0.7
    - jupyterlab-pygments==0.1.2
    - keras==2.3.1
    - librosa==0.7.1
    - mayavi==4.7.1
    - menpo==0.10.0
    - mido==1.2.9
    - mpld3==0.3
    - mpldatacursor==0.7.1
    - napari==0.3.1
    - napari-plugin-engine==0.1.5
    - napari-svg==0.1.2
    - nbclient==0.5.1
    - nbconvert==6.0.7
    - nest-asyncio==1.4.3
    - numpy==1.18.1
    - oauthlib==3.1.0
    - opencv-python==4.1.2.30
    - openface==0.2.1
    - opt-einsum==3.1.0
    - pandas-datareader==0.8.1
    - pipdate==0.4.1
    - pipwin==0.5.0
    - pixiedust==1.1.18
    - playsound==1.2.2
    - plotly==4.13.0
    - pretty-midi==0.2.8
    - progressbar==2.5
    - protobuf==3.11.1
    - pyasn1==0.4.8
    - pyasn1-modules==0.2.7
    - pyculib==1.0.1
    - pyface==6.1.2
    - pyglet==1.3.2
    - pygments==2.7.2
    - pyjsparser==2.7.1
    - pyod==0.7.8.1
    - pyopengl==3.1.5
    - pyprind==2.11.2
    - pyqt5==5.12
    - pyqt5-sip==4.19.19
    - pyqtwebengine==5.12
    - pysmartdl==1.3.4
    - python-crfsuite==0.9.7
    - python-vlc==3.0.7110
    - rdata==0.2.1
    - requests-oauthlib==1.3.0
    - resampy==0.2.2
    - retrying==1.3.3
    - rise==5.6.1
    - rsa==4.0
    - s3transfer==0.3.3
    - scikit-datasets==0.1.38
    - scikit-fda==0.3
    - scipy==1.3.1
    - sidecar==0.4.0
    - simpleaudio==1.0.4
    - smart-open==1.9.0
    - soundfile==0.10.3.post1
    - speechrecognition==3.8.1
    - srtm-py==0.3.6
    - stumpy==1.3.1
    - suod==0.0.3
    - tellopy==0.6.0
    - tensorboard==1.15.0
    - tensorflow-estimator==1.15.1
    - tensorflow-gpu==2.2.0
    - tensorflow-gpu-estimator==2.2.0
    - termcolor==1.1.0
    - tifffile==2020.5.11
    - torch==1.4.0
    - torchvision==0.5.0
    - traits==6.0.0
    - traitsui==6.1.3
    - traittypes==0.2.1
    - tzlocal==2.1
    - vispy==0.6.4
    - voila==0.2.4
    - vtk==8.1.2
    - wordcloud==1.7.0
    - xarray==0.15.1
    - xgboost==0.90
    - youtube-dl==2020.3.24 ```  
mariobuikhuizen commented 3 years ago

Ok, you are missing https://github.com/voila-dashboards/voila-vuetify

julienguegan commented 3 years ago

ah ! I don't have all I need by executing pip install ipyvuetify ? I guess I wrongly assume that it installed all I need ... Nevermind, I will try it, Thank you ! :smiley: