Skip to content

nils-werner/pycell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycell

Lets you execute single "Hydrogen code cells" from a Python script:

print "this is cell 1"

# %%

print "this is cell 2"

executing it using

pycell -c 1 script.py

will print

this is cell 2

Documentation

Installation

pip install pycell

pycell supports Python 2.7 and 3.3+.

Usage

Command-line

You can call pycell directly from the command line, using pycell or python -m pycell

python -m pycell [options] myscript.py [args...]

Options:
  -h, --help            show this help message and exit
  -c, --cell            select cell to be run, defaults to the last one

This will run the selected cell from myscript.py

Releases

No releases published

Packages

No packages published

Languages