Skip to main content

Automatically runs and displays python code in browser.

Project description

Thebe (WIP)

Thebe is a python command line app. Its purpose is to let you run your code in cells like Jupyter but while using any editor. It does this by watching the cells for changes, and running them if it sees one.

  • So far it only is tested to run on Mac and Ubuntu
  • It probably has a metric dump truck full of bugs
  • And it only works with matplotlib graphs

Installation

Dependencies:

Install pandoc:

on Mac via brew:
brew install pandoc

for linux see pandoc.org

Install ipykernel:

python3 -m pip install ipykernel
python3 -m ipykernel install --user

Install thebe

Run: pip install thebe

How to use

Run:

thebe (File you want to run) (Port you want to display on)

To utilize cells encapsulate your code blocks in: $$$$. e.g.:

$$$$
from random import random
import numpy as np
import matplotlib.pyplot as plt
print(random())
$$$$
plt.plot(np.sin(np.arange(10)))
print(random())
$$$$
print(random())
$$$$

In your browser of choice go to localhost:(Port number) to look at your standard outputs, errors, and plots.

This program is still pretty early on so there's likely a lot of bugs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thebe-0.0.4.6.tar.gz (10.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thebe-0.0.4.6-py3-none-any.whl (10.4 MB view details)

Uploaded Python 3

File details

Details for the file thebe-0.0.4.6.tar.gz.

File metadata

  • Download URL: thebe-0.0.4.6.tar.gz
  • Upload date:
  • Size: 10.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thebe-0.0.4.6.tar.gz
Algorithm Hash digest
SHA256 63ed74978f24adc5acc8d48a87fb66f156f0f3c8ed5c2590461e8aa128789d40
MD5 92aa2cae4f3f9c523294793e300e2c5f
BLAKE2b-256 174520c5053dcbef334296196942abf9e498c80c22bd9cabb562d09f17b593da

See more details on using hashes here.

File details

Details for the file thebe-0.0.4.6-py3-none-any.whl.

File metadata

  • Download URL: thebe-0.0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thebe-0.0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 75347359789b197421939df32216613e7250137f11957e5ccbfdbd11ee983d05
MD5 dd0402296cdc4a617d581d646f8d1867
BLAKE2b-256 0438fb05b82335090a3e52557802b6084e6bac9cd91d351af6ac5099d55c165b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page