☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Failing miserably while trying to associate a PDE to a time slider

Community Support
Igor_Morgado
Igor_Morgado

Hi there.

I’m trying to plot my 1D PDE in time using bokeh. I have a nparray U where each line is a time slice( dt ) and each column is a space slice (dx), therefore U[0] is my initial condition and U[n] is my n-th iteration.

Of course if I ask to plot(x,U[t]) for every t, I get the correct plot (as good as my approximations can be ;-), but I would like associate this with a time slider for interactivity (of course in future I would like to “play” it as animation :wink:

For now I would like to avoid to use bokeh server, since I want that this HTML be an stand alone “application”

Here is the source code

http://pastebin.com/9p0ZMHn8

⌁   Link to post
birdsarah_continuum
birdsarah_continuum

I may be misunderstanding, but you have to choose:

Python callbacks - bokeh server

Standalone html only - javascript callbacks

Sarah Bird
sbird@continuum.io

···

On May 30, 2016, at 4:03 PM, Igor Morgado morgado.igor@gmail.com wrote:

Hi there.

I’m trying to plot my 1D PDE in time using bokeh. I have a nparray U where each line is a time slice( dt ) and each column is a space slice (dx), therefore U[0] is my initial condition and U[n] is my n-th iteration.

Of course if I ask to plot(x,U[t]) for every t, I get the correct plot (as good as my approximations can be ;-), but I would like associate this with a time slider for interactivity (of course in future I would like to “play” it as animation :wink:

For now I would like to avoid to use bokeh server, since I want that this HTML be an stand alone “application”

Here is the source code

http://pastebin.com/9p0ZMHn8

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/72b53cfc-909d-4710-aac2-62daeac592a3%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Igor_Morgado
Igor_Morgado

No Sarah, you’re not misunderstanding. I was misunderstanding. Good to know about this. Therefore I will need to choose, since I know nothing (about js), I would stick with bokeh server.

···

Em segunda-feira, 30 de maio de 2016 19:00:16 UTC-5, Sarah Bird escreveu:

I may be misunderstanding, but you have to choose:

Python callbacks - bokeh server

Standalone html only - javascript callbacks

Sarah Bird
sb...@continuum.io

On May 30, 2016, at 4:03 PM, Igor Morgado morgad...@gmail.com wrote:

Hi there.

I’m trying to plot my 1D PDE in time using bokeh. I have a nparray U where each line is a time slice( dt ) and each column is a space slice (dx), therefore U[0] is my initial condition and U[n] is my n-th iteration.

Of course if I ask to plot(x,U[t]) for every t, I get the correct plot (as good as my approximations can be ;-), but I would like associate this with a time slider for interactivity (of course in future I would like to “play” it as animation :wink:

For now I would like to avoid to use bokeh server, since I want that this HTML be an stand alone “application”

Here is the source code

http://pastebin.com/9p0ZMHn8

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/72b53cfc-909d-4710-aac2-62daeac592a3%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post

End of archived discussion · Replies are disabled