A SoS Jupyter notebook accepts the following types of cells:

  • Markdown cells that can be rendered to have title, table etc
  • Subkernel cells with statements in other languages with optional SoS magics at the beginning of the cells
  • SoS cells with SoS statements without any section header
  • Workflow cells with SoS statements and section header. These cells can only be executed by magic %run, %sosrun, or command sos run from command line
In [1]:
%preview rn[1:3]
> rn[1:3]:
  1. 1.73156050362224
  2. 0.578415051972805
  3. -1.55262655684374
In [2]:
Out[2]:
0.012104626083526911
In [3]:
In [2]:
Hello, I am test_1 in Python
Generating myfigure.pdf