{"id":604,"date":"2021-04-15T23:18:00","date_gmt":"2021-04-15T23:18:00","guid":{"rendered":"http:\/\/pybullet.org\/wordpress\/?p=604"},"modified":"2022-03-26T04:24:21","modified_gmt":"2022-03-26T04:24:21","slug":"pybullet-in-a-colab","status":"publish","type":"post","link":"https:\/\/pybullet.org\/wordpress\/index.php\/2021\/04\/15\/pybullet-in-a-colab\/","title":{"rendered":"PyBullet in a colab"},"content":{"rendered":"\n<p>You can directly try out PyBullet in your web browser, using Google Colab. !pip install pybullet takes about 15 seconds, since there is a precompiled Python wheel.<br><br>Here is an example training <a href=\"https:\/\/colab.research.google.com\/drive\/15JSROMJbeiqxcUwifPR2NYeeFBKmyIlX#scrollTo=E2eWDjPZsQc5\">colab <\/a>a PyBullet Gym environment using Stable Baselines PPO:<br><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"320\" height=\"200\" src=\"https:\/\/pybullet.org\/wordpress\/wp-content\/uploads\/2021\/04\/download-1.png\" alt=\"\" class=\"wp-image-607\" srcset=\"https:\/\/pybullet.org\/wordpress\/wp-content\/uploads\/2021\/04\/download-1.png 320w, https:\/\/pybullet.org\/wordpress\/wp-content\/uploads\/2021\/04\/download-1-300x188.png 300w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p>It is also possible to use hardware OpenGL3 rendering in a Colab, through EGL. Make sure to set the MESA environment variables. Here is an example <a href=\"https:\/\/colab.research.google.com\/drive\/1u6j7JOqM05vUUjpVp5VNk0pd8q-vqGlx\">colab<\/a>.<br><br><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"320\" height=\"200\" src=\"https:\/\/pybullet.org\/wordpress\/wp-content\/uploads\/2021\/04\/download.png\" alt=\"\" class=\"wp-image-605\" srcset=\"https:\/\/pybullet.org\/wordpress\/wp-content\/uploads\/2021\/04\/download.png 320w, https:\/\/pybullet.org\/wordpress\/wp-content\/uploads\/2021\/04\/download-300x188.png 300w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can directly try out PyBullet in your web browser, using Google Colab. !pip install pybullet takes about 15 seconds, since there is a precompiled Python wheel. Here is an example training colab a PyBullet Gym environment using Stable Baselines PPO: It is also possible to use hardware OpenGL3 rendering in a Colab, through EGL. &hellip; <a href=\"https:\/\/pybullet.org\/wordpress\/index.php\/2021\/04\/15\/pybullet-in-a-colab\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">PyBullet in a colab<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/604"}],"collection":[{"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=604"}],"version-history":[{"count":4,"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":629,"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/604\/revisions\/629"}],"wp:attachment":[{"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pybullet.org\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}