Skip to content

get/set functions to get code from REPL #954

@cruncher12

Description

@cruncher12

It's possible to fetch the code from a REPL tag as described by Jeff in the comment, but it'd be ideal to have an official API implemented.

Original issue:
I know this is not something directly PyScript related, but is there a way of getting the current code in a py-repl via JS? I am working on something and that is needed. I understand it would probably be as simple as getting the text in an element, but what element would that be? Another thing: can you preload code into a REPL so it is not needed to be typed out every time you load the page?

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogissue has been triaged but has not been earmarked for any upcoming releaseclassicIssues only applicable to PyScript versions 2023.05.1 and earlier ("PyScript Classic")type: featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions