A library for network visualization and algorithm simulation.
Project description
AlgorithmX Python
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8c748fad99e56cbd53c9d0934cbb011273ca6302ab7f398f731358053707a62
|
|
| MD5 |
7314a5111aa617338ef96283e51448c5
|
|
| BLAKE2b-256 |
f2e87d7b4e013f36843190f7232bf21bdff383ba1178eac307c445ee56a73631
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccec0c04f5a7458dda5b5decfe15758747384daf6c6ec6d8178d1e8cf8c27d2e
|
|
| MD5 |
a3e590c3f316c33f827af559361df6d9
|
|
| BLAKE2b-256 |
516d2bba1b1b949d0f82de99dffa1609f9fb69e052380869e62127d25f48eea0
|