title: decision tree for visualisation using Graphviz? Displaying image file in jupyter lab?
body: <p>I am building decision tree for visualisation of obvious rules from data.</p>
  <p>Using graphviz to visualise this graph using foloowing code:</p>
  <pre><code>from six import StringIO  
  import pydotplus 
  from sklearn import tree
  dotfile = StringIO() 
  tree.export_graphviz(dt_default, out_file=dotfile) 
  graph = pydotplus.graph_from_dot_data(dotfile.getvalue())
  </code></pre>
  <p>Till this point it works fine.
  Now i am stuck on this step.</p>
  <p>i tried</p>
  <pre><code>graph
  </code></pre>
  <p>output is</p>
  <pre><code>&lt;pydotplus.graphviz.Dot object at 0x7fee800f6310&gt;
  
  </code></pre>
  <p>i tried</p>
  <pre><code>from IPython.display import Image
  Image(graph)
  </code></pre>
  <p>output is</p>
  <pre><code>&lt;IPython.core.display.Image object&gt;
  </code></pre>
  <p>i tried</p>
  <pre><code>plt = Image(graph.create_png())
  display(plt)
  </code></pre>
  <p>output is</p>
  <pre><code>&lt;IPython.core.display.Image object&gt;
  </code></pre>
  <p>i tried</p>
  <pre><code>graph.create_png()
  </code></pre>
  <p>output is</p>
  <pre><code>b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\t\x1c\x00\x00\x01\xf3\x08\x02\x00\x00\x00\xc7G\xd4\xa5\x00\x00\x00\x06bKGD\x00\xff\x00\xff\x00\xff\xa0\xbd\xa7\x93\x00\x00 \x00IDATx\x9c\xec\xddy\\\xcdy\xff\xff\xf1\xf7\xe9\xb4\'\x89\xc82\xd3\x90\xd0\xd8bd\xabQR\x91\xb1^\xa3\x0cc\x17c.\xcb\x95\xb1\x8f\xeb\xbahV2\x17jdf.\xcbD\xc2(K\xa6T\xa8(\xc6\x92\xa5d\xcb(\xc4\x18KZ\xb5P\x9d..............
  </code></pre>
  <p>Can someone help on next steps ? I am totally clueless whats happening ?</p>