Skip to content
Get started

eqiora.jupyter

← Python API index

IPython extension that compiles %%eqiora notebook cells.

View source

In an IPython kernel with Eqiora 0.1.3 or later installed, run:

python
%load_ext eqiora.jupyter
import eqiora

In a separate cell, start with %%eqiora model and paste the source from Get started. Subsequent Python cells use model like any other Model. If the cell fails, model keeps its previous value. See notebook source cells for arguments and editor support.

Register the %%eqiora cell magic; called by %load_ext eqiora.jupyter.

python
def load_ipython_extension(ipython: Any) -> None: ...

Remove the cell magic. Models that were already compiled stay available.

python
def unload_ipython_extension(ipython: Any) -> None: ...