IPython/Jupyter Support

Introduction

These classes integrate with Jupyter Notebook using the ipywidgets package.

IPythonProgressBar - Progress bar for Jupyter Notebook

class qinfer.IPythonProgressBar[source]

Bases: object

Represents a progress bar as an IPython widget. If the widget is closed by the user, or by calling finalize(), any further operations will be ignored.

Note

This progress bar is compatible with QuTiP progress bar classes.

description

Text description for the progress bar widget, or None if the widget has been closed.

Return type:str
start(max)[source]

Displays the progress bar for a given maximum value.

Parameters:max (float) – Maximum value of the progress bar.
update(n)[source]

Updates the progress bar to display a new value.

finished()[source]

Destroys the progress bar.