Skip to content

Missing, broken code in "View code" tab on PyScript.net #2243

@ramalho

Description

@ramalho

Checklist

  • I added a descriptive title
  • I searched for other issues and couldn't find a solution or duplication
  • I already searched in Google and didn't find any good information or help

What happened?

I want to use the TODO example as the basis for a simple project. However, when I click on the View Code tab on the right, the source for index.html shown is incomplete, only the <py-config> and <py-script> elements are shown, but the example requires other HTML elements like a text box and button, but they are not shown in the HTML.

Also, the Python source code listings start with the first line indented, which would be a syntax error in Python.

See screenshot:
Screenshot 2024-11-05 at 18 39 38

I tried to use the browser to view the real source code of the page, but it is complicated by a lot of code that has nothing to do with the example. So, thanks for the idea of the View Code tab, it's really valuable!

What browsers are you seeing the problem on? (if applicable)

Firefox, Chrome

Console info

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions