-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Moves Python code out of interpreter file #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes a lot of sense to me
pyscriptjs/src/pyscript.py
Outdated
@@ -35,7 +37,7 @@ def identity(value, meta): | |||
'image/svg+xml': identity, | |||
'application/json': identity, | |||
'application/javascript': lambda value, meta: f'<script>{value}</script>' | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't let me comment below but line 48 indentation is slightly off. Please fix before merging now that it's actually being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment about an indentation issue. Otherwise this will be so much cleaner!
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…script into fpliger/154_move_py_code_out
for more information, see https://pre-commit.ci
Addresses #154, moving all the PyScript Python logic out of the interpreter.ts file and loading at runtime. Performance tests do not show any significant performance impacts.