Handle an event from the front end.
(self, msg)
| 311 | return self._variables[key] |
| 312 | |
| 313 | def _interface_event(self, msg): |
| 314 | """Handle an event from the front end.""" |
| 315 | if msg["event"] == "stop": |
| 316 | self._executor.stop() |
| 317 | elif msg["event"] == "opened": |
| 318 | pass # we don't need to do anything here because the first time we display we'll send the html |
| 319 | pass |
| 320 | |
| 321 | def _ipython_display_(self): |
| 322 | """Display the program in the ipython notebook.""" |