title: Visualising the decision tree in sklearn
body: <p>When I want to visualise the tree I got this error.</p>
  
  <p>I have shown the required libraries imported. Is there expected reason with jupiter-notebook ?</p>
  
  <pre><code>from sklearn import tree
  import matplotlib.pyplot
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.model_selection import train_test_split
  from sklearn.datasets import load_breast_cancer
  cancer=load_breast_cancer()
  x=cancer.data
  y=cancer.target
  clf=DecisionTreeClassifier(max_depth=1000)
  x_train,x_test,y_train,y_test=train_test_split(x,y)
  clf=clf.fit(x_train,y_train)
  tree.plot_tree(clf.fit(x_train,y_train))
  </code></pre>
  
  <blockquote>
    <p>AttributeError: module 'sklearn.tree' has no attribute 'plot_tree'</p>
  </blockquote>