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

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

I may be misunderstanding, but you have to choose:

Python callbacks - bokeh server

Standalone html only - javascript callbacks

Sarah Bird
[email protected]

···

On May 30, 2016, at 4:03 PM, Igor Morgado [email protected] 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 [email protected].

To post to this group, send email to [email protected].

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.

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
[email protected]

On May 30, 2016, at 4:03 PM, Igor Morgado [email protected] 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 [email protected].

To post to this group, send email to [email protected].

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.