src.canns.analyzer.plotting.jupyter_utils¶
Utilities for Jupyter notebook integration with matplotlib animations.
Functions¶
|
Display a matplotlib animation in Jupyter notebook using HTML/JavaScript. |
Detect if code is running in a Jupyter notebook environment. |
Module Contents¶
- src.canns.analyzer.plotting.jupyter_utils.display_animation_in_jupyter(animation, format='jshtml')[source]¶
Display a matplotlib animation in Jupyter notebook using HTML/JavaScript.
- Parameters:
animation – matplotlib.animation.FuncAnimation object
format (str) – Display format - ‘jshtml’ (default) or ‘html5’ (video tag)
- Returns:
IPython.display.HTML object if successful, None otherwise