IPython/Jupyter notebook widgets and utilities.
A mediator for the storing and retrieving of configuration settings.
| Variables: | fname – Name of the context, this should be unique such as the name of a notebook |
|---|
Reads the current configuration settings related to the matplotlib.rcParams used by LabelWidget.
| Returns: | The current configuration settings or None if no settings are found. |
|---|
Reads the current configuration settings related to the LatexRenderer.
| Returns: | The current configuration settings or None if no settings are found. |
|---|
Reads the current configuration settings related to matplotlib.rcParams, which are used by RcWidget.
| Returns: | The current configuration settings or an empty dict. |
|---|
Updates the configuration settings related to matplotlib.rcParams used by LabelWidget.
| Parameters: | updates – Changes to the configuration. |
|---|
Updates the configuration settings related to LatexRenderer.
| Parameters: | updates – Changes to the configuration. |
|---|
Updates the configuration settings related to matplotlib.rcParams used by RcWidget.
| Parameters: | updates – Changes to the configuration. |
|---|
A widget you can use to easily fill in strings for titles, xlabels and ylabels of matplotlib subplots.
| Variables: |
|
|---|
import dautil as dl
dl.nb.LabelWidget(2, 2, context)
Creates a box with the widgets for a single subplot (cell).
| Parameters: |
|
|---|---|
| Returns: | The box with widgets. |
Reads the labels from a configuration file.
Updates an internal data structure and related configuration file.
| Parameters: |
|
|---|
Utility class which helps number and render Latex in a IPython/Jupyter notebook.
| Variables: |
|
|---|
import dautil as dl
lr = dl.nb.LatexRenderer(chapter=6, start=6, context=context)
lr.render(r'Y_j= \sum _{i=-(m-1)/2}')
Creates a Latex string relating to the numbering of equations.
| Returns: | A Latex string with the correct equation number. |
|---|
Renders an equation.
| Parameters: | equation – A string containing the equation. |
|---|
A context following the Null Object Pattern which does nothing
Creates a page with widgets for the RcWidget.
| Variables: |
|
|---|
‘ivar keys: A list of matplotlib properties.
Adds a new widget to the internal dictionary.
| Parameters: | widget – An IPython HTML widget. |
|---|
Adds color choosers for relevant properties starting with a prefix such as axes.
Builds an Accordion containing widgets.
| Returns: | The Accordion with widgets sorted by descriptions. |
|---|
This widget configures the matplotlib.rcParams global settings.
| Variables: |
|
|---|
Creates a tab page for the matplotlib.rcParams keys which start with axes.
Creates a tab page for the matplotlib.rcParams keys which start with figure.
Creates a tab page for the matplotlib.rcParams keys which start with font.
Creates a tab page for the matplotlib.rcParams keys which start with grid.
Creates a tab page for the matplotlib.rcParams keys which start with lines.
Prints the current matplotlib.rcParams in a textarea.
| Parameters: | button_instance – The button to click on. |
|---|
Processes changes to the GUI and updates matplotlib.rcParams.
| Parameters: |
|
|---|
A factory for IPython widgets part of the RcWidget GUI.
| Variables: | rc_widget – A RcWidget instance. |
|---|
Creates a box with widgets related to choosing a color.
| Parameters: | property – A color related key in matplotlib.rcParams. |
|---|---|
| Returns: | A box with widgets. |
Creates a slider for linewidth-type settings in matplotlib.rcParams.
| Parameters: | desc – The description label of the widget. |
|---|---|
| Returns: | The configured slider. |
Creates a dropdown wiget with short month names as labels.
| Parameters: | month – The month to select by default. |
|---|---|
| Returns: | The configured month widget. |
Creates a slider for size-type settings in matplotlib.rcParams.
| Parameters: | desc – The description label of the widget. |
|---|---|
| Returns: | The configured slider. |