VPython doesn't seem to work in vscode cell
See original GitHub issueVPython does weird things in vscode jupyter cell. Normally in jupyter, when you run
import vpython
vpython.box()
an interactive output shows up with a movable and rotatable cube (doesn’t require an extension).
In vscode cell or interactive console, vpython.box()
doesn’t ever finish, the cell number has a star in it.
Does vpython do something currently unsupported by vscode or is this fixable?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Working with Jupyter code cells in the Python Interactive window
Work with Jupyter-like code cells; Run code in the Python Interactive Window ... Run Below, which appears on the first cell, runs all...
Read more >VSCode doesn't recognize python cells - CVE instead
When I click on the language button in the right-down corner, Python is on the list but it converts it automatically to CVE....
Read more >How VSCode has leaped forward as Jupyter Notebook Editor
I was rather on a quest for a better option to work with Jupyter Notebooks, which culminated in VSCode. However, the experience with...
Read more >Getting Started | Python in Visual Studio Code
You can always use the Clear Results button to clear the results window. Run selected code. Running a cell in a kernel. Open...
Read more >How to Use Jupyter Notebooks with Visual Studio Code (and ...
This tutorial demonstrates how to setup Visual Studio Code to work with Python Jupyter notebooks. We'll use the Anaconda python distribution ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you Don for prioritizing the case. VPython has always been messy since it requires the browser to open to view the physics simulations outputted by VPython. Bringing it to VSCode interactive window will be a revolutionary idea to teach physics coding with ease. I will enquire about the implementation process here in github once every two months. I hope VPython will be implemented in VSCode python interactive and VSCode jupyter notebook in the next four months. Also, is it possible to contact the team taking care of VPython implementation directly - or a dedicated VPython VSCode github page -, for instance to view the power of VSCode to do VPython simulations with ease or a place for suggesting further improvements?
Closing this issue as there’s nothing we can do about this, due to the way the vpython widget is written. Summary - vpython uses a non standard way to communicate with the backend kernel by creating other sockets.