title: output .dot file is not created in folder. Why? How to fix?
body: <p>The .dot file cannot be created in my folder</p>
  <p>This code is written in jupyter notebook and the &quot;to be&quot; created .dot file to be used in VSCode</p>
  <pre><code>import pandas as pd
  from sklearn.tree import DecisionTreeClassifier
  from sklearn import tree
  
  music_data = pd.read_csv(&quot;music.csv&quot;)
  X = music_data.drop(columns=[&quot;genre&quot;])
  y = music_data[&quot;genre&quot;]
  
  model = DecisionTreeClassifier()
  model.fit(X, y)
  
  tree.export_graphviz(model, out_file=&quot;music-recommender.dot&quot;, 
                      feature_names=[&quot;age&quot;, &quot;gender&quot;], 
                      class_names=sorted(y.unique()),
                      label=&quot;all&quot;, 
                      rounded=True,
                      filled=True)
  </code></pre>