adaptive.notebook_integration module¶
notebook_extension
¶
Enable ipywidgets, holoviews, and asyncio notebook integration.
Source code in adaptive/notebook_integration.py
ensure_holoviews
¶
ensure_plotly
¶
Source code in adaptive/notebook_integration.py
live_plot
¶
Live plotting of the learner's data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
runner
|
Runner
|
|
required |
plotter
|
function
|
A function that takes the learner as a argument and returns a
holoviews object. By default |
None
|
update_interval
|
int
|
Number of second between the updates of the plot. |
2
|
name
|
hasable
|
Name for the |
None
|
normalize
|
bool
|
Normalize (scale to fit) the frame upon each update. |
True
|
Returns:
| Name | Type | Description |
|---|---|---|
dm |
DynamicMap
|
The plot that automatically updates every |
Source code in adaptive/notebook_integration.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
should_update
¶
Source code in adaptive/notebook_integration.py
live_info
¶
Display live information about the runner.
Returns an interactive ipywidget that can be visualized in a Jupyter notebook.