Hi Thomas,

It makes sense, thanks for the tips I'll try a headless browser

Best
Gungor

On Tuesday, August 8, 2017 at 1:40:03 PM UTC+3, takowl wrote:
>
> Hi Güngör,
>
> Their speculation in the later part of that thread is essentially correct. 
> Nbconvert runs your Python code and produces the output, which from 
> Jupyter's point of view is the Javascript Bokeh sends to produce the plots. 
> That Javascript runs when you open the file in your browser, but at that 
> point the Bokeh backend it needs to talk to is gone, so it can't display 
> the plot.
>
> If you need Javascript to execute while the kernel is running, you'll need 
> to run it in a browser. Depending on your use case, that could mean 
> automating a headless browser (using e.g. Selenium), or some extra 
> Javascript running in a regular browser.
>
> Thomas
>
> On 8 August 2017 at 08:17, Güngör Budak <[email protected] <javascript:>> 
> wrote:
>
>> Hi,
>>
>> I'm using bokeh to generate interactive visualizations and I want to 
>> pre-render / execute the notebooks I programmatically generate using 
>> "jupyter nbconvert --to notebook --execute notebook1.ipynb --output 
>> notebook1_output.ipynb". Although it seems it executes the cells but the 
>> outputs from JS powered visualizations are not stored in the executed 
>> notebook file and manual execution is required on the browser.
>>
>> Is there a way to keep such outputs in the notebook files 
>> programmatically through Terminal?
>>
>> We had some discussion on bokeh forums please have a look at it 
>> <https://groups.google.com/a/continuum.io/forum/#!topic/bokeh/vFCPyLSzlRA>
>> .
>>
>> Best
>> Gungor
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/9ac12388-61cf-4dd5-ae4d-7d5791650d85%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jupyter/9ac12388-61cf-4dd5-ae4d-7d5791650d85%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/b21af669-7266-4d86-8639-86a6c85bc4db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to