Closed mstewart141 closed 5 years ago
Hello @mstewart141 and thanks for opening this issue and discussing this with the Bokeh team.
Jupyter Classic implements a trust mechanism that prevents outputs with code from being executed if the user did not run the cells themselves. The jupyter trust
command is a way of circumventing that and saying you trust all content in the notebook regardless of whether or not you've run the cells yourself.
nteract doesn't currently implement this notebook trust mechanism so I don't think that is the issue. I suspect that something is going on with the JavaScript transform that is preventing it from rendering the Bokeh plot.
Do you have an example output notebook that you can share to help with debugging?
thanks safia, big fan of your work. i will close this now; we eventually got this working and there were no hard blockers in the end. one related problem that i had was that commuter seemed to be rearranging some of the JS-backed-plot dom elements (think bokeh plots) such that they were appended to the bottom of the notebook rather than inlined
after the particular notebook cell that computed the given plot. i do not believe i have enough info to open a super helpful ticket, however.
thanks again!
Hi @mstewart141 we have a similar problem with Commuter and Papermill fro bokeh plots generated by Holoviews. I tried the tricks in your bokeh ticket but it still does not plot in Commuter. How did you manage to make it work, I can open a new ticket if you prefer. Thks
hi, the bokeh ticket is all the info i have really, sorry!
No problem @mstewart141 I will try again the tricks in the ticket ! Thanks a lot for the prompt answer !
hello all, i am using
commuter
to serve some jupyter notebooks from s3. it works great (if one builds from source anyway).the problem i am having is some of my notebooks have interactive plots generated by
bokeh
that include javascript. in a normalhtml-ified-notebook
these plots only display properly (in all their javascripty glory) after runningjupyter trust mynotebook.ipynb
.i am wondering how i can effect that for commuter? basically, i think i need to tell commuter i trust these notebooks and that all the JS should be loaded. any advice to resolve this appreciated!! thanks all 😄
Addendum: this ticket (https://github.com/bokeh/bokeh/issues/8392) details my interactions with the
bokeh
team, in which they clued me in tojupyter trust
which allows JS dynamic plots to render in notebooks that were run bynteract/papermill
but are not displayed bynteract/commuter
.