by danielvf · 8y ago · 0 comments
for ship in myShip.radarScan():
if ship.is_enemy:
display([ship.type, ship.range, ship.bearing])
And then have that cells results always showing the current data as they play the game.https://jupyter-contrib-nbextensions.readthedocs.io/en/lates...
display handles that you can update from elsewhere in the notebook might be of interest. Here's an example:
https://github.com/ipython/ipython/blob/master/examples/IPyt...