danielfrg / pelican-jupyter

Pelican plugin for blogging with Jupyter/IPython Notebooks
Apache License 2.0
423 stars 105 forks source link

Bokeh plots are not working #72

Closed eyalshafran closed 6 years ago

eyalshafran commented 7 years ago

I have a few Bokeh plots which work on the notebook. When I use the plugin (markup mode - option 1) the plots are just ignored in the output.

I'm not sure if I'm doing something wrong (the plots do work on the notebook), the plugin does not work with Bokeh or if I need to modify something for it to work.

Any ideas?

RajeshThallam commented 7 years ago

@eyalshafran, See if suggestion in the link helps. http://pmbaumgartner.github.io/some-tips-for-using-jupyter-notebooks-with-pelican.html (section: Adding in Dynamic Notebook Content)

I have not tried myself.

eyalshafran commented 7 years ago

Thanks. I'm having some issues with the suggestions made in that link.

I have noticed that if I use the nbconvert to html the Bokeh plots look fine.

danielfrg commented 7 years ago

So bokeh plots used to work but I just noticed that my blog (that uses this plugin) is also not rendering them correctly. I'll try to test soon and come back to this. Note that this plugin basically uses nbconvert but from python instead of the command.

eyalshafran commented 7 years ago

I noticed that if I add:

to the html the Bokeh plots work.
jskaza commented 6 years ago

@eyalshafran Where did you add this html code? The article template or after generating the pelican output?

danielfrg commented 6 years ago

This was fixed recently. This a test from my blog: http://danielfrg.com/drafts/jupyter-notebook-test.html

Please reopen with an example if not working.

eyalshafran commented 6 years ago

@danielfrg I still could not get it to work. Can you please specify what you mean by "reopen with example"?