Notebook helpers#

module:

navground.sim.notebook

Helpers to display simulations in Jupyter notebooks.

Displays a world in the notebook, either as HTML or SVG

Parameters:

Display an empty world view in a jupyter notebook ready for a a navground.sim.ui.WebUI to keep it up-to-date.

Parameters:
Returns:

A HTML view

Perform a simulation and displays the recorded video in a notebook

Parameters:
  • world – The world to simulate

  • time_step – The time step

  • duration – The simulation duration

  • factor – The real-time factor

  • width – The size of the view

  • port – The websocket port

  • kwargs – Arguments forwarded to navground.sim.ui.html_for_world()