Skip to main content

instaviz

Instant visualization of Python AST and Code Objects.

Installation

Requires modern Python 3.6+

pip install instaviz

Usage

Instaviz is designed to be used like PDB, it will start a webserver when the show() function is called. Simply pass a class or function to be displayed

def my_function():
    # your code
    ...

# your code
import instaviz; instaviz.show(my_function)

You can also run instaviz inside the Python REPL.

[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import instaviz
>>> def fib(n):
...     a, b = 1, 1
...     for i in range(2, n + 1):
...         a, b = b, a + b
...     return b
... 
>>> instaviz.show(fib)
Bottle v0.12.17 server starting up (using WSGIRefServer())...
Listening on http://localhost:8080/
Hit Ctrl-C to quit.

Credits

This package bundles some 3rd party javascript libraries. All libraries are bundled in the package so that the WebUI doesn't need to make any requests to the internet to protect the privacy of your code.

json2html json2html-visualizer visjs

Release files for instaviz 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for instaviz 0.6.0
File Size Uploaded
instaviz-0.6.0.tar.gz 454.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for instaviz 0.6.0
File Interpreter ABI Platform
instaviz-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 917.1 kB

Release files / instaviz-0.6.0.tar.gz

Download URL instaviz-0.6.0.tar.gz
Size 454.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7072f97e465a9f9233e2ba8a37f6901faf7263492d9773b73183cd25d5ee92ca
BLAKE2b-256 checksum
How to use checksums
641ff338e1ccf4d5e500ae33b2cf79ae803ebe8c96240339b2dcf48c9542012e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15

Release files / instaviz-0.6.0-py3-none-any.whl

Download URL instaviz-0.6.0-py3-none-any.whl
Size 462.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40a2602530e1c78cee7f877b21a128c7bdd77c7080f50c79cc0876c828dcaaef
BLAKE2b-256 checksum
How to use checksums
e600624a0f9a314c3cdc1eb8dba089d80acc9dded0520888d4fa16a011b941b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page