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.

VPython doesn't seem to work in vscode cell

See original GitHub issue

VPython 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MossiAhmadicommented, May 29, 2021

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?

0reactions
DonJayamannecommented, Jun 16, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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