question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python (Pandas) - Running code requires restart of VCS

See original GitHub issue

So i came across this bug by writing a python code,

Requirements to make the bug, Python, Pandas

  1. Write any code that requires Pandas and try execute.
  • First time it might work, try rerun the code and you will get an error ImportError: No module named pandas
  1. Restart VCS run the code
  • this will then work again.

Running the code directly from terminal in VCS with python test.py will not cause the bug. If requesting more info or test code let me know.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
formulahendrycommented, Jun 20, 2017

Could you show me the screenshot of the output?

0reactions
formulahendrycommented, Jun 21, 2017

Good to know! Then closing this issue. But I have no idea about the root cause. By default, the code will be run through Node child_process API. With "code-runner.runInTerminal": true, code will be run in Integrated Terminal of VS Code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code: ModuleNotFoundError: No module named 'pandas'
I recommend to restart (close and open again) your Command Prompt session if you want to see/work with the new default Python version....
Read more >
Contributing to pandas — pandas 1.2.2 documentation
This will automatically update your pull request with the latest code and restart the Continuous Integration tests. Another reason you might need to...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P).
Read more >
How To Install Pandas in Visual Studio Code (Windows 11)
This video will be about How To Install Pandas in Visual Studio Code on Windows 11. This allows you to get started with...
Read more >
How To Install Pandas in Visual Studio Code (Mac) - YouTube
This video will be about How To Install Pandas in Visual Studio Code. This allows you to get started with Pandas in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found