Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python notebook support via from nxpd import ipythonsupport #6

Merged
merged 1 commit into from
Apr 25, 2015

Conversation

rainwoodman
Copy link
Contributor

This differ from what we discussed a bit, but the basic idea is there.
I also noticed the internals of nxpd maybe simplified quite a bit (since write supports a StringIO object input)

import networkx as nx
from nxpd import ipythonsupport

reload(ipythonsupport)
G = nx.DiGraph()
G.graph['rankdir'] = 'LR'
G.graph['dpi'] = 120
G.add_cycle(range(4))
G.add_node(0, color='red', style='filled', fillcolor='pink')
G.add_node(1, shape='square')
G.add_node(3, style='filled', fillcolor='#00ffff')
G.add_edge(0, 1, color='red', style='dashed')
G.add_edge(3, 3, label='a')
G

import networkx as nx
from nxpd import ipythonsupport

reload(ipythonsupport)
G = nx.DiGraph()
G.graph['rankdir'] = 'LR'
G.graph['dpi'] = 120
G.add_cycle(range(4))
G.add_node(0, color='red', style='filled', fillcolor='pink')
G.add_node(1, shape='square')
G.add_node(3, style='filled', fillcolor='#00ffff')
G.add_edge(0, 1, color='red', style='dashed')
G.add_edge(3, 3, label='a')
G
chebee7i added a commit that referenced this pull request Apr 25, 2015
python notebook support via from nxpd import ipythonsupport
@chebee7i chebee7i merged commit 4db9420 into chebee7i:master Apr 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants