title: Visual Studio Code gives error when using Data Viewer: "Python package 'pandas' is required for viewing data"
body: <p>I am running a python notebook in VS Code (see image). It runs fine but when I try to inspect a dataframe with the Data Viewer I get:
  <code>&quot;Python package 'pandas' is required for viewing data.&quot;</code></p>
  <p>The package is installed, otherwise, the code would not work and the data frames would not be present in the variable panel. When I click on &quot;Install&quot; I get: <code>&quot;Error: All data science packages require an interpreter be passed in&quot;</code></p>
  <p>I only have two environments, Anaconda and one created by VS code. I have tried selecting either one and nothing changes, code runs on both and I get the same errors on both.</p>
  <p>Any ideas on how to fix this problem?</p>
  <p><a href="https://i.stack.imgur.com/WwA7N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WwA7N.png" alt="enter image description here" /></a></p>
  <p>EDIT: The previous question <a href="https://stackoverflow.com/questions/57029128/viewing-data-in-the-vscode-variable-explorer-requires-pandas">Viewing data in the VSCode variable explorer requires pandas</a> does not solve my issue. As mentioned above I have selected different environments without fixing it.</p>
  <p>EDIT 2: Updating pandas did not fix it either. It was only solved by updating Anaconda, as suggested by Mrinal Roy.</p>