{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/4582","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/4582/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/4582/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/4582/events","html_url":"https://github.com/spyder-ide/spyder/issues/4582","id":235002661,"number":4582,"title":"IPython console can't run VPython code","user":{"login":"BruceSherwood","id":1127471,"avatar_url":"https://avatars2.githubusercontent.com/u/1127471?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceSherwood","html_url":"https://github.com/BruceSherwood","followers_url":"https://api.github.com/users/BruceSherwood/followers","following_url":"https://api.github.com/users/BruceSherwood/following{/other_user}","gists_url":"https://api.github.com/users/BruceSherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceSherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceSherwood/subscriptions","organizations_url":"https://api.github.com/users/BruceSherwood/orgs","repos_url":"https://api.github.com/users/BruceSherwood/repos","events_url":"https://api.github.com/users/BruceSherwood/events{/privacy}","received_events_url":"https://api.github.com/users/BruceSherwood/received_events","type":"User","site_admin":false},"labels":[{"id":177791028,"url":"https://api.github.com/repos/spyder-ide/spyder/labels/component:IPython%20Console","name":"component:IPython Console","color":"d4c5f9","default":false},{"id":177778989,"url":"https://api.github.com/repos/spyder-ide/spyder/labels/type:Bug","name":"type:Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/45","html_url":"https://github.com/spyder-ide/spyder/milestone/45","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/45/labels","id":2483934,"number":45,"title":"v3.2.1","description":null,"creator":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars0.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"open_issues":78,"closed_issues":0,"state":"open","created_at":"2017-04-26T15:18:44Z","updated_at":"2017-07-12T00:32:36Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2017-06-10T13:23:46Z","updated_at":"2017-07-12T03:23:16Z","closed_at":null,"body":"The following issue might be an IPython issue, or a VPython issue, but it seems possible that it's a Spyder issue. I've also posted this issue to the IPython repository.\r\n\r\nI'm the principal developer of the new VPythons (plural), with the same API in the browser (glowscript.org, using the RapydScript-NG Python-to-JavaScript transpiler), in a Jupyter notebook using true Python, or, as of two days ago, in IDLE or Spyder (see vpython.org for details).\r\n\r\nI can import vpython and run in Spyder if I choose the deprecated Python console or an external System terminal.\r\n\r\nIf I choose the IPython console, I get this output, and no 3D display:\r\n\r\nrunfile('C:/Users/Bruce/.spyder-py3/temp.py', wdir='D:/Documents/0GlowScriptWork/LocalServer')\r\n<IPython.core.display.Javascript object>\r\n<IPython.core.display.Javascript object>\r\n<IPython.core.display.Javascript object>\r\n<IPython.core.display.Javascript object>\r\n<IPython.core.display.Javascript object>\r\n<IPython.core.display.Javascript object>\r\n\r\nI don't have any difficulties running from IDLE.\r\n\r\nSince the Spyder Python console is going away, can you offer any insight into what could be the problem with trying to run a program that imports vpython, when using the IPython console? The vpython module when running outside the Jupyter notebook environment sets up an http server to serve image files (for textures on 3D objects) and font files (for extruding 3D text), and it sets up a websocket server for rapid two-way communications between the Python program and a JavaScript program in the browser that calls upon the GlowScript library for WebGL rendering.\r\n\r\nThe vpython module when not running in a Jupyter notebook makes no references to IPython other than to check whether the user is or is not running in a notebook, so the output shown above suggests that it is the IPython console itself that is unhappy.\r\n\r\nThanks for any advice you can offer!"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/314633838","html_url":"https://github.com/spyder-ide/spyder/issues/4582#issuecomment-314633838","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/4582","id":314633838,"user":{"login":"BruceSherwood","id":1127471,"avatar_url":"https://avatars2.githubusercontent.com/u/1127471?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceSherwood","html_url":"https://github.com/BruceSherwood","followers_url":"https://api.github.com/users/BruceSherwood/followers","following_url":"https://api.github.com/users/BruceSherwood/following{/other_user}","gists_url":"https://api.github.com/users/BruceSherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceSherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceSherwood/subscriptions","organizations_url":"https://api.github.com/users/BruceSherwood/orgs","repos_url":"https://api.github.com/users/BruceSherwood/repos","events_url":"https://api.github.com/users/BruceSherwood/events{/privacy}","received_events_url":"https://api.github.com/users/BruceSherwood/received_events","type":"User","site_admin":false},"created_at":"2017-07-12T03:23:16Z","updated_at":"2017-07-12T03:23:16Z","body":"Is there any progress on what I could do to detect when Spyder is being used, such as Spyder setting some variable?"}}
{"actor":{"display_login":"BruceSherwood"}}