GitHub - ebanner/extipy: Debug your python script with a jupyter notebook

1 min read Original article ↗

extipy

Debug your python script with a jupyter notebook

image

Install

git clone git@github.com:ebanner/extipy.git
cd extipy
pip install -e .

Quick start

Embed an IPython kernel in your code and capture all the variables in scope:

import IPython
IPython.embed_kernel(local_ns={**locals(), **globals()})

Then attach jupyter lab to it:

jupyter lab --KernelProvisionerFactory.default_provisioner_name=extipy-provisioner

Credit

This is largely copied from pyxll-jupyter.

Source

extipy is the subset of the pynt tool that I still use and find useful today.