{"action":"opened","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6858","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6858/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6858/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6858/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/6858","id":158441399,"number":6858,"title":"Add tree plotting function","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Easy","name":"Easy","color":"02d7e1"},{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Enhancement","name":"Enhancement","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T19:47:52Z","updated_at":"2016-06-03T19:47:52Z","closed_at":null,"body":"Currently plotting a decision tree is a pretty big pain, in particular given how easy it could be in a notebook. jupyter actually has built-in support for showing graphviz graphs.\r\nI suggest we add a function with a lazy graphviz import to return a graphviz graph, instead of writing to a file (it's one call to ``graphviz.Source()``).\r\nAlternatively we could add an option to ``export_graphviz`` to return the graph as a string instead of writing to a file. Having to create a StringIO object to show a graph seems silly."}}
{"actor":{"display_login":"amueller"}}