GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — generate output for notebook environments (maybe wrap/convert to html svg tag objects)? · Issue #159 · PythonTurtle/PythonTurtle

generate output for notebook environments (maybe wrap/convert to html svg tag objects)? #159

New issue
Copy link
New issue
Copy link
Open
Open
generate output for notebook environments (maybe wrap/convert to html svg tag objects)?#159
Copy link

Description

@bdklahn
bdklahn
opened on Mar 14, 2021
Issue body actions

Thanks for maintaining/doing this!
My 11-year-old daughter was recently introduced to Turtle in her 6th grade CS course. (I'd be happy to share her cute code for a turtle hatching out of an egg, if you want)
The instructor would share examples, and they would do assignments, using Trinket. That seems to be a nice simple interface to write/display/share code. But I was a little annoyed that they only recently allowed Python3 for free (If anyone, kids should be starting with modern/future versions of tools. They don't have legacy code to maintain.) And Trinket seems/feels a little limited/old.
I got to thinking that there are better open/free interfaces/services for experimenting with and sharing Python code. At work, colleagues and I use Jupyter Lab and know/use Google Colab. Colab would be a nice way for kids to experiment and save/annotate multiple coding tries/parts, etc.I found that Colab is an app which seems to be enabled for use in her school (Google Classroom-enabled) account.

But I found that the standard (Python3.7 tkinter-based?) Turtle didn't work there, due it not knowing/having access to a/the regular DISPLAY, etc.
I understand that/why. So I found the following package, for doing a similar Turtle thing in Colab:
https://github.com/tolgaatam/ColabTurtle
I've been in contact with that developer, via GitHub issues. It seems to me he is/was on the right track by using html svg tags, when in a notebook environment (since Turtle seems to do very simple shapes, etc.). But it would be nice if, for the things he has implemented, it would match this/the traditional API. He is now thinking to return and implement a couple more bits of the API.
But I was wondering if it might be easier to match this API by directly using this API. One thought was to fork this, and see if there were any decorator functions he could add/create to wrap some low-level display ones here.
I looked around a little here, for such things. But I wonder now if it would/could be easier to use any methods already available in/with wx (wx.html???). I am not familiar with wx. Do you have any thoughts/ideas?

Activity

  1. cool-RR commented on Mar 14, 2021

    @cool-RR
    cool-RR
    on Mar 14, 2021
    Member
    More actions

    Hi Brian. It's been many years since I've done any work on PythonTurtle. I wouldn't really try to combine anything from it in a web-based solution. There isn't really any brilliant code here, just a few hacks to get the GUI working right, and solving ugly problems that are typical to desktop programs.

    Reacted by Brian Klahn
  2. bdklahn commented on Mar 14, 2021

    @bdklahn
    bdklahn
    on Mar 14, 2021
    Author
    More actions

    Ah. Thanks for the reply. Good to know.
    So maybe, if that other developer is motivated/able, it could be a good time to do a little bit of a modern Turtle "reboot".
    I still like the idea of enabling (some/more) API compatibility with the traditional Turtle for simplicity/familiarity, and as en hommage. :-)

    Thanks again!

  3. bittner commented on Mar 14, 2021

    @bittner
    bittner
    on Mar 14, 2021
    Member
    More actions

    Hi there @bdklahn,

    I would be open for supporting a PythonTurtle revival. We already do have invested quite a few efforts to make this project more ready for the future. This was for a reason. And while for @cool-RR this project is "over", I think it still has potential for a bright(er) future.

    There are enough ideas in our issue tracker to improve PythonTurtle, and at least one of them is already about saving and loading Python code (issue #64, PR #142). Unfortunately, the latter was abandoned by the contributor short before the finish line. Someone needs to pick this work up.

    So, yes, let's do something about it! I'd be happy to see a save/load feature to/from various formats. In the past we applied for a grant at the PSF (#130) but were turned down. With a more convincing roadmap and more active members maybe future endeavors like that will have a better chance.

  4. cool-RR commented on Mar 14, 2021

    @cool-RR
    cool-RR
    on Mar 14, 2021
    Member
    More actions

    Any effort to revive this project would be welcome.

  5. bdklahn commented on Apr 8, 2021

    @bdklahn
    bdklahn
    on Apr 8, 2021
    Author
    More actions

    Hi @bittner,
    Such efforts/proposals do seem like things appropriate/useful for the foundation to fund.

    Personally, I would just like it if Turtle was usable in a Jupyter Lab/Notebook. It doesn't really make sense to include Turtle as part of an introduction to Python for a new user trying things out in a notebook, if it doesn't even render a drawing there.

    With all the web engine type ways of rendering/displaying graphics/GUIs, etc. (think notebooks, atom, VS Code, web apps, etc.), it seems html svg, etc., might be an appropriate modern default/standard to natively support.

    I'm pretty heavily buried in my own software work (including COVID-19 government agency decision support).

    But I wonder if some proposal might get funded with something like a collaboration with people interested/available here, and someone at:
    https://github.com/tolgaatam/ColabTurtle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.