-
Notifications
You must be signed in to change notification settings - Fork 49
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
Voila gridstack ERROR 500 #178
Comments
Hi @tyxnna! Which version of voila and voila-gridstack are you using? |
hi @hbcarlos , uh this might be a very dumb question but how do i check the versions? |
No, it is not! You can run
|
i just managed to check the voila version with pip list and it's 0.2.16, thanks for the tip! but how do i change the env and what should i change it to ? |
That's great!
If you are using other libraries in your notebook like IPyWidgets, pandas, matplotlib, numpy, etc.
or install them later as follows
|
hi ! i've created a new environment, activated and downloaded packages: The following packages will be downloaded:
The following NEW packages will be INSTALLED: brotli conda-forge/win-64::brotli-1.0.9-h8ffe710_6 The following packages will be DOWNGRADED: openssl 3.0.0-h8ffe710_2 --> 1.1.1l-h8ffe710_0 Preparing transaction: done i tried running it again but i got this: (env_name) C:\Users\tyann>voila FYP0315.ipynb --template=gridstack |
@tyxnna you need to install
|
That's right, I forgot the kernel. Thanks, @trungleduc! |
thank you so much @hbcarlos and @trungleduc it's working now! for future reference, may i know WHY this problem occurred and how did changing the environment help? also a little irrelevant to the topic but
|
Hi @tyxnna! I'm happy to hear that everything works now. The issue was that voila-gristack was not installed.
Using Voila-Gridstack you can select which cells you want to show, and which order. To remove the scroll bar you need to resize the cell from the JupyterLab extension. There is a small screencast here about the voila-gridstack extension for JupyterLab that could be useful. |
Hi @tyxnna. It looks like it could be a bug. Each cell on the GridStack Editor should have a toolbar with a trash can to remove them. I can see the toolbar but it is empty. |
FYI I transferred the issue to the |
I am having similar problems with Voila gridstack and jupyter lab, in which the icons and the grid layout does not appear as options in toolbar and cannot be edited. Tried the new environment approach, same thing. pip list | grep voila pip list | grep jupyter Can you help me to get gridstack editor to function properly in jupyter lab please ? |
can you upgrade to |
ok, just done that, thanks, but the following error appeared: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. and nothing has changed from previous statement. have updated both to newest versions, here's the labextension output. jupyter labextension list JupyterLab v4.0.7 The following extensions are outdated: Consider checking if an update is available for these packages. but when doing the below, it returns old version...weird pip list | grep voila pip list | grep jupyter |
in the meantime, how can I run the gridstack in edit mode please ? I can run the gridstack as template and passing the --VoilaConfiguration.resources="{'gridstack': {'show_handles': True}}" I can resize (but not delete), however, it does not save, returning to original every refresh. I have several notebooks already coded for voila/ipywidgets format (interactive etc.) and will be a pain right now (not talking about time) to switch for other option, such as panel or mercury. I need to be able to complete the dashboards please. your help is much appreciated |
Can you create a new environment with the correct version number: voila 0.4, jupyterlab 3 and voila-gridstack 0.3.1 then try again? |
it'll be easier to detect the issue if you can create a new issue and fill the template. |
I have done the following steps:
the issue is not resolved. observations:
Please advise what to do. thanks (venv) marcellomusarra@Marcellos-MacBook-Air hpd % pip list aiofiles 22.1.0 |
It works well for me with voila 0.4.3, jupyterlab 3.6.5 and voila-gridstack 0.3.1 voila-gridstack.mp4 |
Thanks for that. I installed the same versions and I was able to get the same behaviour, but still, I have questions:
|
hi, i tried running voila gridstack but i'm unable to do so, some assistance will be greatly appreciated !
(base) C:\Users\tyann>voila FYP0315.ipynb --template=gridstack
[Voila] Using C:\Users\tyann\AppData\Local\Temp to store connection files
[Voila] Storing connection files in C:\Users\tyann\AppData\Local\Temp\voila_0zi_f88k.
[Voila] Serving static files from C:\Users\tyann\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\tyann\anaconda3\lib\site-packages\tornado\web.py", line 1704, in _execute
result = await result
File "C:\Users\tyann\anaconda3\lib\site-packages\voila\handler.py", line 163, in get
async for html_snippet, resources in self.exporter.generate_from_notebook_node(notebook, resources=resources, extra_context=extra_context):
File "C:\Users\tyann\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\tyann\anaconda3\lib\site-packages\nbconvert\exporters\templateexporter.py", line 151, in template
self._template_cached = self._load_template()
File "C:\Users\tyann\anaconda3\lib\site-packages\nbconvert\exporters\templateexporter.py", line 362, in _load_template
return self.environment.get_template(template_file)
File "C:\Users\tyann\anaconda3\lib\site-packages\jinja2\environment.py", line 883, in get_template
return self._load_template(name, self.make_globals(globals))
File "C:\Users\tyann\anaconda3\lib\site-packages\jinja2\environment.py", line 857, in _load_template
template = self.loader.load(self, name, globals)
File "C:\Users\tyann\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) 9318.31ms
The text was updated successfully, but these errors were encountered: