Skip to main content

The missing 3D plotting functionality for networkx

Project description

nx3d

-missing homepage- -missing docs- -missing pypi- -missing build status-

-missing project maturity- -missing download count-

The missing 3D plotting functionality for the excellent networkx Python package.

-missing gif of frucht graph-

Installation

In your shell:

pip install nx3d

Quickstart

After installation,

From your shell

python -m nx3d autolabel

or

python -m nx3d diffusion

In your Python REPL

import nx3d
nx3d.demo()

Usage

In your Python code:

import networkx as nx
import nx3d

g = nx.frucht_graph()
nx3d.plot(g)

Contribute

Thank you for considering contributing to nx3d.

Currently, there's no enforced testing, formatting, linting, or typechecking with CI. Let's say that's intentional to keep this young project lightweight. With that in mind, the pre-commit hooks defined in .pre-commit-config.yaml apply linting and formatting to keep the project clean. Please use the pre-commit hooks before opening a PR.

Clone the code

Setup the development environment

You can do this as you like, though you might consider:

  1. Install poetry
  2. Run poetry shell
  3. Run poetry install
  4. Verify the installation by running python -m nx3d

Set up pre-commit

From this project's root, initialize pre-commit as follows:

pre-commit install
pre-commit run -a

Update the docs

  1. Update the inline docstrings and/or the files in the docs/ directory.
  2. Navigate to the docs/ dir and run make html to preview your changes.
  3. When you cut a PR, the CI will trigger a ReadTheDocs build.
  4. When merged, the CD will publish those docs (3).

First time updating the docs

I used brew install python-sphinx, see installation instructions on www.sphinx-doc.org.

Hack on some code

See TODO.md for open tasks.

Open a PR

When it merges, CD will push to PyPi and ReadTheDocs.

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

nx3d-22.9.8.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

nx3d-22.9.8-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file nx3d-22.9.8.tar.gz.

File metadata

  • Download URL: nx3d-22.9.8.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.13 Linux/5.15.0-1019-azure

File hashes

Hashes for nx3d-22.9.8.tar.gz
Algorithm Hash digest
SHA256 1c0db5ebc2ced68d2ed443fc4523b9c45daa3fb3deec11c6f9c4eb9322927dd9
MD5 2d75ba95dacd6b058bb9ed033a7392ba
BLAKE2b-256 05418538b7b80f1d49fcf4e6d6cdd7dd57799ff05d64e037931c80a555481e27

See more details on using hashes here.

File details

Details for the file nx3d-22.9.8-py3-none-any.whl.

File metadata

  • Download URL: nx3d-22.9.8-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.13 Linux/5.15.0-1019-azure

File hashes

Hashes for nx3d-22.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a33332b595689a8a7a2fde4d66dc593fbb9b1dc511b49f29f6a5f43e79a54d5a
MD5 514911523ecb1ed45588e2c4e6869dca
BLAKE2b-256 dab9c82faf23b96053532a37307eef10f3ab6f2e7643d54da975441db0a8765a

See more details on using hashes here.

Supported by

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