Skip to content
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

AttributeError: 'VoilaHandler' object has no attribute 'exporter' #12

Closed
t8ch opened this issue Sep 26, 2019 · 6 comments
Closed

AttributeError: 'VoilaHandler' object has no attribute 'exporter' #12

t8ch opened this issue Sep 26, 2019 · 6 comments

Comments

@t8ch
Copy link

t8ch commented Sep 26, 2019

Using voila with the default template works fine but using gridstack prompts:

File "/home/user/miniconda3/lib/python3.7/site-packages/voila/handler.py", line 125, in _jinja_notebook_execute
File "/home/user/miniconda3/lib/python3.7/site-packages/voila/handler.py", line 125, in <lambda>
result.cells = list(filter(lambda cell: filter_empty_code_cells(cell, self.exporter), result.cells))
AttributeError: 'VoilaHandler' object has no attribute 'exporter' 
ERROR:tornado.general:Cannot send error response after headers written

this is the versions I am using (I have tried different orders of reinstalling libraries via conda):
voila 0.1.11 py_0 conda-forge
voila-gridstack 0.0.6 py_0 conda-forge

does anyone have an idea what the problem might be?

@jtpio
Copy link
Member

jtpio commented Sep 27, 2019

Thanks @t8ch for the report.

This seems to be related to the recent switch to the progressive rendering for the default template in voila.
At the moment the gridstack does not implement progressive rendering and uses a different code path: https://github.com/voila-dashboards/voila/blob/80c1b499ee2c128a85587868bd60229a53c3b563/voila/handler.py#L123-L130

@t8ch
Copy link
Author

t8ch commented Sep 27, 2019

Thanks a lot!
So, as I take it, the current version of voila is incompatible with the current version of gridstack? Just want to make sure I am not missing an obvious workaround (except downgrading).

@jtpio
Copy link
Member

jtpio commented Sep 27, 2019

If you want you could stick to 0.1.10 for now until we fix it and make a new release (voila-dashboards/voila#389). The main change between 0.1.10 and 0.1.11 is the progressive rendering.

@jtpio
Copy link
Member

jtpio commented Sep 28, 2019

@t8ch a new version of voila (0.1.12) has been published, and should be available on conda-forge really soon.

Let us know if it solves the issue!

@t8ch
Copy link
Author

t8ch commented Sep 29, 2019

it does solve the problem! thanks.

(as of now, 0.1.12 is available through pip but not conda)

@jtpio
Copy link
Member

jtpio commented Sep 30, 2019

Good to hear, closing as fixed!

@jtpio jtpio closed this as completed Sep 30, 2019
jtpio pushed a commit to jtpio/voila-gridstack that referenced this issue Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants