visualizecell_to_ipython_animation

cell_to_ipython_animation

Display animations in IPython sessions.

This module proivdes functionality to create and render anmations in an IPython session. It is of particular use when using Jupyter notebooks.

Note

Parts of this module are taken from the JSAnimation package, which is licensed under the BSD 2-Clause License. The individual licensed components are appropriately marked with their corresponding license.

Functions

display_animation(files, interval, style, animID, embedded)

Creates an IPython animation out of files specified in a globstring or a list of paths.

find_closest_index(list_, value)

Finds the index of the value which is closest to the value specified in the arguments

get_lines(cell, time_index, range_vars)

Get list of dictionaries of lines that can be displayed using the plot_lines() function

init_fig(xlim, ylim)

Initialize figure for cell_to_animation()

plot_lines_fun(lines, ax)

Generate plots out of lines

parallelMovieMaker(basedir, lines, xlim, ylim)

Creates figures in parallel and returns animation object.

cell_to_animation(cell, xlim, ylim, tstart, tend, tstep, range_vars, plot_synaptic_input, outdir)

Takes a cell object and creates a 2d animation plotting the range_vars vs soma distance over time.

cell_to_ipython_animation(*args, **kwargs)

Wrapper function to display the animation in the IPython notebook