title: Jupyter Variables doens't work on this code in VSCode
body: <p>I think that I found a little issue with Jupyter Notebook in Python scripts ends in extensions *.py</p>
  <p>I have installed this extensions to VSC: Bracket Pair Colorizer, Dracula PyCharm Theme, Jupyter, Jupyter Keymap, MagicPython, Pylance, Python, Python for VSCode.</p>
  <p>On code below when I running cell, than I trying to explorer variables I had an error &quot;Failed to create the Data Viewer. Check the Jupyter tab of the Output window for more info.&quot;</p>
  <pre><code>#%%
  url = 'https://e-smartdata.teachable.com/p/sciezka-data-scientist-machine-learning-engineer'
  list = url[::1].split('/')
  list2 = list
  code = str(list[4])
  print(code.replace('-',' '))
  </code></pre>
  <p><img src="https://i.stack.imgur.com/vBVRT.png" alt="Error in Jupyter Variables" /></p>
  <p>But when I create new *.py file with clear data for example:</p>
  <blockquote>
  <p>#%% a = [1, 2, 4, 5, 6]</p>
  </blockquote>
  <p>I am able to explore variables</p>
  <p><img src="https://i.stack.imgur.com/1JaFz.png" alt="Working Jupyter Variables" /></p>
  <p>I am trying to resolve this problem for three days. I decide to ask older colleagues :)</p>
  <p>Best Regards,
  Paul</p>