damianavila / RISE

RISE: "Live" Reveal.js Jupyter/IPython Slideshow Extension
Other
3.7k stars 416 forks source link

Size of bokeh charts when converted to slides #162

Open bs1234 opened 9 years ago

bs1234 commented 9 years ago

Bokeh charts appear in full as a notebook but when converted to slides only a portion of them appear (together with a scroll bar to see the remainder)

This might be due by my ignorance (I only recently discovered Jupyter & RISE) or a real issue.

See here: http://stackoverflow.com/questions/33400539/full-size-bokeh-charts-as-jupyter-slides?noredirect=1#comment54593638_33400539

Here is an example notebook: http://nbviewer.jupyter.org/gist/bs1234/1e6e734d6be79855dafe

(FWIW: the size of bokeh chart that displayed correctly were slightly different between my local machine and the nbviewer)

thanks

ps: both Bokeh and RISE are fantastic, great job.

mjbright commented 9 years ago

Hi,

You can create a public gist here: https://gist.github.com/ and then link to that.

Regards, Mike.

On 29 October 2015 at 03:06, bs1234 notifications@github.com wrote:

Bokeh charts appear in full as a notebook but when converted to slides only a portion of them appear (together with a scroll bar to see the remainder)

This might be due by my ignorance (I only recently discovered Jupyter & RISE) or a real issue.

See here: http://stackoverflow.com/questions/33400539/full-size-bokeh-charts-as-jupyter-slides?noredirect=1#comment54593638_33400539

An example .ipynb has been created and will be uploaded just as soon as I work out the easiest place to put it...

Can I save notebooks here on git? if so, any advice how to? (excuse the basic question)

thanks

— Reply to this email directly or view it on GitHub https://github.com/damianavila/RISE/issues/162.

bs1234 commented 9 years ago

Many thanks Mike

A link now added to original comment (gist via nbviewer) Hopefully that works and helps explain the situation.

As I said, it could well be my ignorance as opposed to an issue!

damianavila commented 9 years ago

Thanks for posting this... I will take a look in the next few days... probably it is caused by css from different sources conflicting...

bs1234 commented 9 years ago

Some more info that may be of some use:

1) I have managed to get my bokeh chart to show in full with the code below. BUT : the change in slide width only takes effect AFTER the notebook is shutdown and restarted.

from notebook.services.config import ConfigManager
cm = ConfigManager()
cm.update('livereveal', {
          'width': 1150,
          'height': 1024,
})

2) This may be related to these other issues, since they also involve chopping content: https://github.com/damianavila/RISE/issues/129 https://github.com/damianavila/RISE/issues/143

Good luck and well done again on a great tool

damianavila commented 8 years ago

We should check if this is still happening with the latest Bokeh release.