bokehgraph


Namebokehgraph JSON
Version 0.6.3 PyPI version JSON
download
home_pagehttps://github.com/luerhard/bokehgraph
SummaryInteractive Graph visualization for networkX Graphs
upload_time2024-10-16 13:31:18
maintainerNone
docs_urlNone
authorLukas Erhard
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # bokeh-graph
Interactive Graph visualization for networkX Graphs

# Basic Usage
```python
from bokehgraph import BokehGraph
import networkx as nx

graph = nx.karate_club_graph()

plot = BokehGraph(graph)
plot.draw()
```

## Jupyter Notebooks
To show graphs inlined in Jupyter Notebooks set the `inline` parameter
```python
plot = BokehGraph(graph, width=300, height=300, inline=True)
```

## Draw parameters

The `BokehGraph.draw()` method has a couple of parameters to individualize the resulting plot:
```
node_color="firebrick"
Set node color to any valid bokeh color (only respected if color_by is not set)

palette=None
Set palette to any valid bokeh color palette.
A list of palettes can be found under: https://docs.bokeh.org/en/latest/docs/reference/palettes.html

color_by=None
Set to a node attribute to color nodes by this attribute

edge_color="navy"
Set node color to any valid bokeh color

edge_alpha=0.17
Set edge alpha to a value between [0,1]

node_alpha=0.7
Set edge alpha to a value between [0,1]

node_size=9
Set node size

max_colors=-1
Set a maximum number of colors for color_by (or -1 to use as many colors as possible).
This must be < 256 and lower than the maximum number of colors of your selected palette.
It will divide the attribute space into evenly spaced to colors.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/luerhard/bokehgraph",
    "name": "bokehgraph",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Lukas Erhard",
    "author_email": "luerhard@googlemail.com",
    "download_url": "https://files.pythonhosted.org/packages/56/bf/8cd4d56bfa93e50215a37535436f9e7da54c232d0ebaf9737df48a412b5e/bokehgraph-0.6.3.tar.gz",
    "platform": null,
    "description": "# bokeh-graph\nInteractive Graph visualization for networkX Graphs\n\n# Basic Usage\n```python\nfrom bokehgraph import BokehGraph\nimport networkx as nx\n\ngraph = nx.karate_club_graph()\n\nplot = BokehGraph(graph)\nplot.draw()\n```\n\n## Jupyter Notebooks\nTo show graphs inlined in Jupyter Notebooks set the `inline` parameter\n```python\nplot = BokehGraph(graph, width=300, height=300, inline=True)\n```\n\n## Draw parameters\n\nThe `BokehGraph.draw()` method has a couple of parameters to individualize the resulting plot:\n```\nnode_color=\"firebrick\"\nSet node color to any valid bokeh color (only respected if color_by is not set)\n\npalette=None\nSet palette to any valid bokeh color palette.\nA list of palettes can be found under: https://docs.bokeh.org/en/latest/docs/reference/palettes.html\n\ncolor_by=None\nSet to a node attribute to color nodes by this attribute\n\nedge_color=\"navy\"\nSet node color to any valid bokeh color\n\nedge_alpha=0.17\nSet edge alpha to a value between [0,1]\n\nnode_alpha=0.7\nSet edge alpha to a value between [0,1]\n\nnode_size=9\nSet node size\n\nmax_colors=-1\nSet a maximum number of colors for color_by (or -1 to use as many colors as possible).\nThis must be < 256 and lower than the maximum number of colors of your selected palette.\nIt will divide the attribute space into evenly spaced to colors.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Interactive Graph visualization for networkX Graphs",
    "version": "0.6.3",
    "project_urls": {
        "Homepage": "https://github.com/luerhard/bokehgraph"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85e66641df84958ec7fd3d0908036f19d33ddebb53919ad269ef7632a17096ae",
                "md5": "9c9f8f43223dedb7f1e2b01f368cab8b",
                "sha256": "375c72d0c62fe84a47162c4bda868ec18fd6702819999b1104025b3b17131ff4"
            },
            "downloads": -1,
            "filename": "bokehgraph-0.6.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9c9f8f43223dedb7f1e2b01f368cab8b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 8105,
            "upload_time": "2024-10-16T13:31:16",
            "upload_time_iso_8601": "2024-10-16T13:31:16.886735Z",
            "url": "https://files.pythonhosted.org/packages/85/e6/6641df84958ec7fd3d0908036f19d33ddebb53919ad269ef7632a17096ae/bokehgraph-0.6.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56bf8cd4d56bfa93e50215a37535436f9e7da54c232d0ebaf9737df48a412b5e",
                "md5": "d3e6afbde3e55ecc893106df1d4f0a81",
                "sha256": "a867cb0ba6262150f9b022e85c530f379ec8600c5b07dc32a1589672c2e7c705"
            },
            "downloads": -1,
            "filename": "bokehgraph-0.6.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d3e6afbde3e55ecc893106df1d4f0a81",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 7632,
            "upload_time": "2024-10-16T13:31:18",
            "upload_time_iso_8601": "2024-10-16T13:31:18.224975Z",
            "url": "https://files.pythonhosted.org/packages/56/bf/8cd4d56bfa93e50215a37535436f9e7da54c232d0ebaf9737df48a412b5e/bokehgraph-0.6.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-16 13:31:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "luerhard",
    "github_project": "bokehgraph",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "bokehgraph"
}
        
Elapsed time: 1.46650s