1

I have installed vpython from the terminal using pip install vpython, and it installed successfully. I am using python 3.10.2. When I write from vpython import * nothing happened. Then I write vp.box() or vp.sphere().a Microsoft Edge window opens called localhost:53184 but it keeps blank forever. I tried to reinstall the package but it still not work.

I'm even tried this:

from vpython import *

box()
while True:
  pass

and it still the same

here is the package:

C:\Users\Avi>pip show vpython
Name: vpython
Version: 7.6.3
Summary: VPython for Jupyter Notebook
Home-page: http://pypi.python.org/pypi/vpython/
Author: John Coady / Ruth Chabay / Bruce Sherwood / Steve Spicklemire
Author-email: [email protected]
License: LICENSE.txt
Location: c:\program files\python310\lib\site-packages
Requires: autobahn, ipykernel, jupyter, jupyter-server-proxy, numpy
Required-by:

how can I fix it?

1
  • put this in search bar: 'edge:gpu', and post it in you question. Commented Mar 30, 2022 at 21:32

1 Answer 1

0

It's possible that the problem is with your infinite loop which, depending on what launcher you use, could completely lock up the browser and prevent any display. Either delete the last two lines, or change "pass" to "rate(100)".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.