Skip to main content

A library for network visualization and algorithm simulation.

Project description

AlgorithmX Python

travis PyPI version docs

AlgorithmX Python is a library for network visualization and algorithm simulation, based on AlgorithmX. It works through either a HTTP server, or as a widget in Jupyter Notebooks and JupyterLab.

Resources

Installation

Python 3.6 or higher is required.

AlgorithmX can be installed using pip:

pip install algorithmx

or using conda:

conda install algorithmx

Jupyter Widget

In classic Jupyter notebooks, the widget will typically be enabled by default. However, if you installed using pip with notebook version <5.3, you will have to manually enable it by running:

jupyter nbextension enable --sys-prefix --py algorithmx

with the appropriate flag. To enable in JupyterLab, run:

jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install algorithmx-jupyter

Example Usage

If you wish to use the library through a HTTP/WebSocket server, follow the template below:

import algorithmx

server = algorithmx.http_server()
canvas = server.canvas()

def start():
    canvas.nodes([1, 2]).add()
    canvas.edge((1, 2)).add()

canvas.listen('start', start)
server.start()

If you are using Jupyter, add the following to a cell:

import algorithmx

widget = algorithmx.jupyter_widget()
canvas = widget.canvas()

canvas.nodes([1, 2]).add()
canvas.edge((1, 2)).add()

display(widget)

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

algorithmx-1.0.0b7.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

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

algorithmx-1.0.0b7-py3-none-any.whl (72.7 kB view details)

Uploaded Python 3

File details

Details for the file algorithmx-1.0.0b7.tar.gz.

File metadata

  • Download URL: algorithmx-1.0.0b7.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.7

File hashes

Hashes for algorithmx-1.0.0b7.tar.gz
Algorithm Hash digest
SHA256 f8c748fad99e56cbd53c9d0934cbb011273ca6302ab7f398f731358053707a62
MD5 7314a5111aa617338ef96283e51448c5
BLAKE2b-256 f2e87d7b4e013f36843190f7232bf21bdff383ba1178eac307c445ee56a73631

See more details on using hashes here.

File details

Details for the file algorithmx-1.0.0b7-py3-none-any.whl.

File metadata

  • Download URL: algorithmx-1.0.0b7-py3-none-any.whl
  • Upload date:
  • Size: 72.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.7

File hashes

Hashes for algorithmx-1.0.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 ccec0c04f5a7458dda5b5decfe15758747384daf6c6ec6d8178d1e8cf8c27d2e
MD5 a3e590c3f316c33f827af559361df6d9
BLAKE2b-256 516d2bba1b1b949d0f82de99dffa1609f9fb69e052380869e62127d25f48eea0

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