{"action":"created","issue":{"url":"https://api.github.com/repos/Troxid/vrep-api-python/issues/2","repository_url":"https://api.github.com/repos/Troxid/vrep-api-python","labels_url":"https://api.github.com/repos/Troxid/vrep-api-python/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Troxid/vrep-api-python/issues/2/comments","events_url":"https://api.github.com/repos/Troxid/vrep-api-python/issues/2/events","html_url":"https://github.com/Troxid/vrep-api-python/issues/2","id":255973212,"number":2,"title":"Resetting the connection","user":{"login":"psychemedia","id":82988,"avatar_url":"https://avatars0.githubusercontent.com/u/82988?v=4","gravatar_id":"","url":"https://api.github.com/users/psychemedia","html_url":"https://github.com/psychemedia","followers_url":"https://api.github.com/users/psychemedia/followers","following_url":"https://api.github.com/users/psychemedia/following{/other_user}","gists_url":"https://api.github.com/users/psychemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/psychemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychemedia/subscriptions","organizations_url":"https://api.github.com/users/psychemedia/orgs","repos_url":"https://api.github.com/users/psychemedia/repos","events_url":"https://api.github.com/users/psychemedia/events{/privacy}","received_events_url":"https://api.github.com/users/psychemedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-07T15:14:16Z","updated_at":"2017-09-08T09:39:03Z","closed_at":null,"author_association":"NONE","body":"(Thanks for posting this example...)\r\n\r\nI can get the Pioneer example running by executing the example code in a code cell in a Jupyter notebook, and stopping the cell execution stops the simulator. But if I then try to re-run the code cell, to rerun the demo, I get an error:\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nReturnCommandError                        Traceback (most recent call last)\r\n<ipython-input-2-10d78785080c> in <module>()\r\n     38         return self._left_sensor.read()[1].distance()\r\n     39 \r\n---> 40 with VRep.connect(\"127.0.0.1\", 19997) as api:\r\n     41     r = PioneerP3DX(api)\r\n     42     while True:\r\n\r\n/usr/local/lib/python3.6/site-packages/pyrep/api.py in connect(ip, port)\r\n     26             return VRepApi(res)\r\n     27         else:\r\n---> 28             raise ReturnCommandError(res)\r\n     29 \r\n     30     def __enter__(self):\r\n\r\nReturnCommandError: Undefined return code: -1\r\n```\r\n\r\nThe only way I can reconnect from the notebook is to restart the notebook kernel and then re-run the cell?"},"comment":{"url":"https://api.github.com/repos/Troxid/vrep-api-python/issues/comments/328056242","html_url":"https://github.com/Troxid/vrep-api-python/issues/2#issuecomment-328056242","issue_url":"https://api.github.com/repos/Troxid/vrep-api-python/issues/2","id":328056242,"user":{"login":"psychemedia","id":82988,"avatar_url":"https://avatars0.githubusercontent.com/u/82988?v=4","gravatar_id":"","url":"https://api.github.com/users/psychemedia","html_url":"https://github.com/psychemedia","followers_url":"https://api.github.com/users/psychemedia/followers","following_url":"https://api.github.com/users/psychemedia/following{/other_user}","gists_url":"https://api.github.com/users/psychemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/psychemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychemedia/subscriptions","organizations_url":"https://api.github.com/users/psychemedia/orgs","repos_url":"https://api.github.com/users/psychemedia/repos","events_url":"https://api.github.com/users/psychemedia/events{/privacy}","received_events_url":"https://api.github.com/users/psychemedia/received_events","type":"User","site_admin":false},"created_at":"2017-09-08T09:39:03Z","updated_at":"2017-09-08T09:39:03Z","author_association":"NONE","body":"Great, thanks... that works far more cleanly:-)"}}
{"actor":{"display_login":"psychemedia"}}