An interactive cell runner for python
Project description
cellz
Installation
pip install cellz
Usage
Cellz is an interactive cell interpreter for python. It allows you to run python code from a source file, cell-by-cell: similar to the way we use cells in jupyter notebooks, and all from the command line.
Cellz is interactive: you can continue to develop the source code without leaving the interpreter!
First split you code into separate cells using the token '#%% cellname'
#file.py
import sys
#%% cell1
print("hello!")
#%% cell2
def add1(x):
return x+1
#%% cell3
print(add1(5))
Then run the file in the cellz interpreter
cellz file.py
This will start the interpreter, from which one can run specific cells of code, one at a time.
License
cellz
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cellz-1.1.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
cellz-1.1.0-py3-none-any.whl
(5.3 kB
view hashes)