Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Plotting a decision tree

Hi,
how do you guys plot a decision tree within Quantopian? I can train and predict with sklearn. Usually I would use the export_graphviz method (https://scikit-learn.org/0.16/modules/generated/sklearn.tree.export_graphviz.html) and then read in the created tree.dot file. A simple tutorial can be found on kaggle (https://www.kaggle.com/willkoehrsen/visualize-a-decision-tree-w-python-scikit-learn).

Since I am not allowed to import Image from IPython.display and plt.imshow or anything to transform the dot file into a png, I have no idea how to plot a decision treee on Quantopian.

Please help