New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gitbook-plugin-python-visualizer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-python-visualizer

Python real-time visualizer

latest
Source
npmnpm
Version
1.3.3
Version published
Maintainers
1
Created
Source

npm version

Python visualizer for gitbook

Origins

This is a python visualizer ported from pythontutor.ru (it also has international version). Sources can be found on git.

This plugin is running now using backend server (for python executing) hosted by me. I don't guarantee that it will be working all time. If you want, you can start your server using //TODO sources. This is not complicated, all you need is python3 and bottle package.

I have in plans to port this to pure JS (like Brython) to run it with browser only, please contribute if you like.

Usage

Usage is quite simple, just let your book.json have

{
  "plugins": ["python-visualizer"]
}

and insert to your .md

{% visualizer %}
{% endvisualizer %}

Or

{% visualizer %}
# Put your code here!
# And watch visualisation line by line!
x = 1
for i in range(1, 10):
    x *= i
print("10! =", x)
{% endvisualizer %}

Features

  • Feel free to create several visualizers on one page.
  • Your code will also stay while you're going to another pages!

Keywords

python

FAQs

Package last updated on 02 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts