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
Built Distribution
File details
Details for the file cellz-1.1.0.tar.gz
.
File metadata
- Download URL: cellz-1.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e6c6fb36d82832de48a0559502544ee6880567f5f3c59181561652b9bafc9e |
|
MD5 | 87c55516fcc675ed05f9ad3430777f91 |
|
BLAKE2b-256 | 1f5ca458e961cf87652ef52dc86dc1aca9f79cb96ca85693303566be948936ec |
File details
Details for the file cellz-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: cellz-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e35c679a7709d4b1f0926dcf530ebeb289f66a06ef3ebecbb6422add8ab797a |
|
MD5 | 03c355088a8c8147c2317238f375ad37 |
|
BLAKE2b-256 | 77e4bb8a7180e10fa123d97519f9d3e8ef703e00cae4dd79bf2a4d0dedf98fa2 |