Hi,
I am trying to convert a notebook with voila with some calculations in it that take a few minutes. I am getting this error:
[Voila] ERROR | Timeout waiting for execute reply (30s).
For nbconvert you can change the timeout with --ExecutePreprocessor.timeout=180 (or another time) at the command line. Is there a similar option in voila?
Thanks,
John
This looks like it is identical to #125 so I am assuming it is still an issue?
I am also running into this issue. Pretty much any cell which runs for longer than a few seconds seems to crash the whole render process. This leaves Voil谩 unusable for me.
Below is the stack trace.
[Voila] ERROR | Timeout waiting for execute reply (30s).
Exception in thread Thread-4:
Traceback (most recent call last):
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\voila\threading.py", line 25, in run
return ioloop_in_thread.run_until_complete(self._run())
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\voila\threading.py", line 28, in _run
async for item in self.fn(self.args, *self.kwargs):
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\async_generator_impl.py", line 366, in step
return await ANextIter(self._it, start_fn, args)
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\async_generator_impl.py", line 197, in __next__
return self._invoke(first_fn, *first_args)
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\async_generator_impl.py", line 209, in _invoke
result = fn(args)
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\voila\exporter.py", line 119, in async_jinja_generator
for output in self.template.generate(nb=nb_copy, resources=resources, **extra_context):
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\jinja2\environment.py", line 1045, in generate
yield self.environment.handle_exception(exc_info, True)
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\jinja2_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "c:\users\daan\appdata\local\programs\python\python37-32\share\jupyter\voila\templates\defaultnbconvert_templates\voila.tpl", line 2, in top-level template code
{% import "spinner.tpl" as spinner %}
File "c:\users\daan\appdata\local\programs\python\python37-32\lib\site-packages\jinja2\environment.py", line 1039, in generate
for event in self.root_render_func(self.new_context(vars)):
File "c:\users\daan\appdata\local\programs\python\python37-32\share\jupyter\voila\templates\defaultnbconvert_templates\voila.tpl", line 17, in root
{% endif %}
File "c:\users\daan\appdata\local\programs\python\python37-32\share\jupyter\voila\templates\defaultnbconvert_templates\base.tpl", line 14, in root
{%- block html_head_js -%}
File "c:\users\daan\appdata\local\programs\python\python37-32\share\jupyter\voila\templates\defaultnbconvert_templates\lab.tpl", line 19, in root
This is solved in #240, pass --ExecutePreprocessor.timeout=180, if it does not solve your problem, feel free to reopen.
This is solved in #240, pass
--ExecutePreprocessor.timeout=180, if it does not solve your problem, feel free to reopen.
Thanks, that fixed it immediately! I had found the other issues, but hadn't figured out how to pass it through Voil谩 yet. Thank you for the swift reply.
Passing the argument works in command line, but what if we want to open the voila dashboard from jupyter notebook. How do we proceed then ?
@Chinmay4400 see https://github.com/voila-dashboards/voila/issues/596#issuecomment-628460433
Most helpful comment
This is solved in #240, pass
--ExecutePreprocessor.timeout=180, if it does not solve your problem, feel free to reopen.