title: sankey diagram can't be displayed in powerBI by python plotly lib
body: <ol>
  <li>I have below scripts with python</li>
  </ol>
  <blockquote>
  <pre><code>import pandas as pd
  import chart_studio.plotly as py
  import plotly.graph_objects as go
  labelListTemp1 = list(set(dataset.source.values))
  labelListTemp2 = list(set(dataset.target.values))
  labelList = labelListTemp1 + labelListTemp2
  sankey_node = list(dict.fromkeys(labelList))
  fig = go.Figure(data=[go.Sankey( node = dict( pad=15, 
                                               thickness=20, 
                                               line = dict(color = &quot;black&quot;, width = 0.5),
                                               label = labelList,
                                               color = &quot;blue&quot; ),
                                                link = dict(source = dataset.source.apply(lambda x: labelList.index(x)),
                                                            target = dataset.target.apply(lambda x: labelList.index(x)),
                                                            value = dataset.value))])
  
  fig.show()
  </code></pre>
  </blockquote>
  <ol start="2">
  <li><p>Then I enable python visual in powerBI, and then drag-and-drop source, target and value into 'Values' section.</p>
  </li>
  <li><p>Then I run the python script in step1</p>
  </li>
  <li><p>But the sankey chart doesn't displayed in powerBI.  the code open a browser and display the sankey chart in the browser, which is not what I want. please refer to below screenshot.</p>
  </li>
  </ol>
  <p>[![enter image description here][1]][1]</p>
  <p><strong>Expected result: I want the sankey chart displayed inside powerBI, so I can publish the chart and send it to team members.</strong></p>
  <p>Any expert please help take a look what's wrong with my code?</p>
  <p>Thanks,
  Cherie</p>