Skip to content

Instantly share code, notes, and snippets.

@brainstorm
Last active November 17, 2015 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainstorm/25f69d7a735f6e0127ff to your computer and use it in GitHub Desktop.
Save brainstorm/25f69d7a735f6e0127ff to your computer and use it in GitHub Desktop.
IPython SVG and pyveplot broken graph
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import pandas as pd\n",
"from pyveplot import *\n",
"import networkx, random\n",
"from IPython.display import SVG\n",
"\n",
"# a network\n",
"g = networkx.barabasi_albert_graph(50, 2)\n",
"\n",
"# our hiveplot object\n",
"h = Hiveplot('svg_ipython.svg')\n",
" # start end\n",
"axis0 = Axis( (100,100), (200,100), stroke=\"grey\")\n",
"axis1 = Axis( (200,200), (100,200), stroke=\"blue\")\n",
"\n",
"h.axes = [ axis0, axis1 ]\n",
"\n",
"# randomly distribute nodes in axes\n",
"for n in g.nodes():\n",
" node = Node(n)\n",
" random.choice( h.axes ).add_node( node, random.random() )\n",
"\n",
"for e in g.edges():\n",
" if (e[0] in axis0.nodes) and (e[1] in axis1.nodes): # edges from axis0 to axis1\n",
" h.connect(axis0, e[0], 45,\n",
" axis1, e[1], -45,\n",
" stroke_width='0.34', stroke_opacity='0.4',\n",
" stroke='purple')\n",
" elif (e[0] in axis1.nodes) and (e[1] in axis0.nodes): # edges from axis1 to axis0\n",
" h.connect(axis1, e[0], -45,\n",
" axis0, e[1], 45,\n",
" stroke_width='0.34', stroke_opacity='0.4',\n",
" stroke='red')\n",
"\n",
"h.save()"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/><path d=\"M 102.060725087 200.0 C 130.746474565 269.253525435 156.728300569 156.728300569 180.225932035 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 102.060725087 200.0 C 130.746474565 269.253525435 112.640219256 112.640219256 117.875969503 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 102.060725087 200.0 C 130.746474565 269.253525435 108.867227875 108.867227875 112.540153922 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 113.998959064 100.0 C 109.898758884 109.898758884 194.785438419 205.214561581 192.62549629 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 113.998959064 100.0 C 109.898758884 109.898758884 199.077598485 200.922401515 198.695527267 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 113.998959064 100.0 C 109.898758884 109.898758884 139.234362079 260.765637921 114.064410727 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 113.998959064 100.0 C 109.898758884 109.898758884 146.653459999 253.346540001 124.556599625 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 113.998959064 100.0 C 109.898758884 109.898758884 191.911523363 208.088476637 188.561166641 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 113.998959064 100.0 C 109.898758884 109.898758884 193.211892239 206.788107761 190.400165941 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 192.62549629 200.0 C 194.785438419 205.214561581 134.259819379 134.259819379 148.45070121 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 192.62549629 200.0 C 194.785438419 205.214561581 165.801717117 165.801717117 193.057680774 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 192.62549629 200.0 C 194.785438419 205.214561581 155.790622918 155.790622918 178.899855584 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 192.62549629 200.0 C 194.785438419 205.214561581 138.416660754 138.416660754 154.329362659 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 192.62549629 200.0 C 194.785438419 205.214561581 162.411340414 162.411340414 188.262964059 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 192.62549629 200.0 C 194.785438419 205.214561581 157.651266601 157.651266601 181.531203115 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 199.077598485 200.922401515 198.695527267 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 190.027290171 209.972709829 185.896458506 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 146.653459999 253.346540001 124.556599625 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 191.911523363 208.088476637 188.561166641 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 171.916906161 228.083093839 160.284507819 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 166.582434128 233.417565872 152.740425123 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 148.45070121 100.0 C 134.259819379 134.259819379 188.009024242 211.990975758 183.042199457 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 198.695527267 200.0 C 199.077598485 200.922401515 138.416660754 138.416660754 154.329362659 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 193.057680774 100.0 C 165.801717117 165.801717117 195.340183357 204.659816643 193.410024105 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 193.057680774 100.0 C 165.801717117 165.801717117 166.582434128 233.417565872 152.740425123 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 193.057680774 100.0 C 165.801717117 165.801717117 136.278299037 263.721700963 109.883906281 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 193.057680774 100.0 C 165.801717117 165.801717117 170.445806218 229.554193782 158.204058329 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 178.899855584 100.0 C 155.790622918 155.790622918 193.211892239 206.788107761 190.400165941 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 178.899855584 100.0 C 155.790622918 155.790622918 172.358932829 227.641067171 160.909627929 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 178.899855584 100.0 C 155.790622918 155.790622918 177.876522121 222.123477879 168.712677537 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 178.899855584 100.0 C 155.790622918 155.790622918 175.061740848 224.938259152 164.731975685 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 154.329362659 100.0 C 138.416660754 138.416660754 133.396860433 266.603139567 105.808936728 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 114.064410727 200.0 C 139.234362079 260.765637921 140.724820031 140.724820031 157.593592813 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 188.561166641 200.0 C 191.911523363 208.088476637 122.861494378 122.861494378 132.331035406 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 109.329607437 200.0 C 135.886350566 264.113649434 150.481562791 150.481562791 171.391710749 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 152.740425123 200.0 C 166.582434128 233.417565872 108.814027596 108.814027596 112.464917366 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 160.909627929 200.0 C 172.358932829 227.641067171 156.728300569 156.728300569 180.225932035 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 160.909627929 200.0 C 172.358932829 227.641067171 122.861494378 122.861494378 132.331035406 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 123.126859363 200.0 C 145.642480965 254.357519035 135.206885264 135.206885264 149.790054629 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 123.126859363 200.0 C 145.642480965 254.357519035 106.047998791 106.047998791 108.553161916 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 112.540153922 100.0 C 108.867227875 108.867227875 131.773425235 268.226574765 103.513052653 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 112.540153922 100.0 C 108.867227875 108.867227875 132.70112607 267.29887393 104.825019755 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 112.540153922 100.0 C 108.867227875 108.867227875 136.278299037 263.721700963 109.883906281 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 183.042199457 200.0 C 188.009024242 211.990975758 123.311519074 123.311519074 132.967466434 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 183.042199457 200.0 C 188.009024242 211.990975758 150.481562791 150.481562791 171.391710749 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 149.790054629 100.0 C 135.206885264 135.206885264 175.061740848 224.938259152 164.731975685 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 132.331035406 100.0 C 122.861494378 122.861494378 172.542681225 227.457318775 161.169487402 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 171.391710749 100.0 C 150.481562791 150.481562791 175.69932993 224.30067007 165.633662812 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 103.513052653 200.0 C 131.773425235 268.226574765 150.874956135 150.874956135 171.948052951 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 103.513052653 200.0 C 131.773425235 268.226574765 112.810610331 112.810610331 118.116938873 100.0\" fill=\"none\" stroke=\"red\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><path d=\"M 180.225932035 100.0 C 156.728300569 156.728300569 177.876522121 222.123477879 168.712677537 200.0\" fill=\"none\" stroke=\"purple\" stroke-opacity=\"0.4\" stroke-width=\"0.34\"/><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/><line stroke=\"grey\" x1=\"100\" x2=\"200\" y1=\"100\" y2=\"100\"/><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/><line stroke=\"blue\" x1=\"200\" x2=\"100\" y1=\"200\" y2=\"200\"/><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg><svg baseProfile=\"full\" height=\"100%\" version=\"1.1\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:ev=\"http://www.w3.org/2001/xml-events\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs/></svg></svg></svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"SVG(\"svg_ipython.svg\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment