Graphviz.Source not rendering in Jupyter Notebook
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After exporting a .dot file using scikit-learn's handy export_graphviz function. I am trying to render the dot file using Graphviz into a cell in my Jupyter Notebook: import graphviz from IPython.display import display with open("tree_1.dot") as f: dot_graph = f.read() display(graphviz.Source(dot_graph)) However the out[ ] is just an empty cell. I am using graphviz 0.5 (pip then conda installed), iPython 5.1 , and Python 3.5 The dot file looks correct here are the first characters: digraph Tree {\nnode [shape=box, style="filled", color=