I\'m on a Jupyter notebook using Python3 and trying to plot a tree with code like this:
import xgboost as xgb
from xgboost import plot_tree
plot_tree(model, num
I was finally able to learn that Conda has a package which can install it for you. I was able to get it installed by running the command:
!conda install python-graphviz --yes
Note the --yes
is only needed if the installation needs to verify adding/changing other packages since the Jupyter notebook is not interactive once it is running.