Skip to content

Conversation

@mwcraig
Copy link
Collaborator

@mwcraig mwcraig commented Jan 24, 2019

When merged, this will become alpha4.

Users should set the spyder preference "Run" to "Execute in a dedicated console" to avoid having multiple vpython programs run in the same view.

Each program the user runs opens in a separate browser tab. That is unavoidable. Ideally, t user would close those tabs between runs.

With this PR:

  • There is a message printed when vpython is imported if the user has the wrong Run setting. Screenshot is below.
  • When the browser tab is closed and the user is running in spyder, magic is done behind the scenes to force vpython to be re-imported the next time the code is run.
  • Pushing run multiple times on the same program without closing the browser tab results in displaying the same things multiple times (once for each time you hit run). Not sure I can fix that.

Screenshot of warning message printed in spyder console:

screen shot 2019-01-24 at 9 03 59 am

@mwcraig mwcraig added this to the 7.5.0 milestone Jan 24, 2019
@BruceSherwood BruceSherwood merged commit b4c5305 into BruceSherwood:master Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants