Wiggan
December 26, 2022, 8:44pm
1
Hi,
I’ve been implementing my own game of life and saw that there was an example for holoviews:
https://holoviews.org/gallery/apps/bokeh/game_of_life.html
This example does absolutely nothing for me though. I’ve been trying to figure out why it doesn’t work, but there seems to be more than one problem. start=False in the add_periodic_callback() call looks like one. Counter is reset every time, and I can’t figure out why… Tap never generates valid x and y values to the update function.
Anyone else who can make it work?
riziles
December 27, 2022, 6:48pm
2
I can’t get it to work either.
Hoxbro
December 27, 2022, 7:21pm
3
If you run in a notebook, you can do the following:
Add a variable to the callback:
callback = pn.state.add_periodic_callback(advance, period=50, start=False)
panel.servable('Game of Life')
Do you set up.
And run callback.start()
in the next cell.
Wiggan
December 28, 2022, 7:02pm
4
I changed to start=True, but there are still many problems in the example.
riziles
December 29, 2022, 3:03am
5
I upgraded to the most recent release of Holoviews and now it is working for me.
Wiggan
December 29, 2022, 2:22pm
6
It does? Not for me!
I run:
holoviews 1.15.3
I’ve tested chrome and firefox.
Which release are you testing? And did you use the code from the link in my original post, but just changed start=True?
riziles
December 30, 2022, 2:38pm
7
Oh! I was on a machine with 1.14.8 where it was working. I just tried on a machine with 1.15.2 and it did not work.
riziles
December 30, 2022, 2:48pm
8
… I just upgraded that other machine to 1.15.3, and now it no longer works.