Giter Site home page Giter Site logo

Comments (1)

shawnblakesley avatar shawnblakesley commented on August 15, 2024

Not very well.

When running through a Jupyter notebook, it leaves the cozmo program running in the background, and that leads to clashes when you try to run a program more than once. You would need to restart the kernel between runs of cozmo.run_program. It would probably work better if there was a way to launch a notebook inside of a running cozmo thread like is done with ipython in the cli.py example, but I'm not sure if that would really be feasible. It'd also mean that your notebook wouldn't be portable to other people which would defeat the point.

I'd also note that it would still be rendered to an external window. If you were seeking to embed the viewer into the notebook that's most likely not possible. Jupyter renders in the browser, and the 3d viewer is using native OpenGL. Instead of using a viewer, It may be possible to render the camera feed to Jupyter because you can get raw frames with robot.add_event_handler(cozmo.world.EvtNewCameraImage, _callback_).

from cozmo-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.