Skip to content

Commit a4f2a27

Browse files
authored
Merge pull request #281 from CJ-Wright/install_docs
add installation docs
2 parents c6719c0 + f8b7bdb commit a4f2a27

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/source/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ flow of data. Typically people rely on tools like ``itertools.tee``, and
6666
However this quickly become cumbersome, especially when building complex
6767
pipelines.
6868

69+
Installation
70+
------------
71+
72+
To install either use:
73+
74+
- conda-forge: ``conda install streamz -c conda-forge``
75+
- pip: ``pip install streamz``
76+
- dev: ``git clone https://github.com/python-streamz/streamz`` followed by ``pip install -e streamz/``
6977

7078
Related Work
7179
------------

streamz/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def readable_graph(graph):
114114
"""
115115
import networkx as nx
116116

117-
mapping = {k: "{}".format(graph.node[k]["label"]) for k in graph}
117+
mapping = {k: "{}".format(graph.nodes[k]["label"]) for k in graph}
118118
idx_mapping = {}
119119
for k, v in mapping.items():
120120
if v in idx_mapping.keys():
@@ -132,7 +132,7 @@ def to_graphviz(graph, **graph_attr):
132132
import graphviz
133133

134134
gvz = graphviz.Digraph(graph_attr=graph_attr)
135-
for node, attrs in graph.node.items():
135+
for node, attrs in graph.nodes.items():
136136
gvz.node(node, **attrs)
137137
for edge, attrs in graph.edges().items():
138138
gvz.edge(edge[0], edge[1], **attrs)

0 commit comments

Comments
 (0)