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
Latest PyScript REPL not showing results #1147
Comments
The output div is empty |
delete this code in 'repl2.html': |
Hi. Thanks for reply. I replaced the html I had before with what you wrote
But it didn't fix the problem. Here is what I had before
This is embedded in a Vue app by the way. But it worked fine in alpha release. |
Hello @radiantone thank you for raising this issue with us. Since the alpha version, printing things will appear in a I've tried to run a for loop like you have on https://pyscript.net/examples/repl2.html and the numbers are shown in Just wanted to double check, are you using the CSS file from pyscript? -- UPDATE -- Oh I think I know what's happening, the py-terminal creates a |
Let me check on the css again. |
Yeah, I pull the css in, but because the css in alpha was modifying some other classes outside of py-repl and distorting my app, I had to import it from my Vue component to make it work, but in latest, it now overrides other classes again. @import "../css/pyscript.css"; I can try removing this and let pyscript.js import the css? |
Do you see the numbers anywhere on the page? |
Only in the console. No where in the page |
Hello, seems like you're using the old API (print) |
I should hope a basic python print command still works as it should. Otherwise, that's a deal breaker. |
If you have the bandwidth - I'd be curious if the branch from this PR works in the way you want it to - it restores REPL's prints to stdout to immediately underneath the REPL by default, in a 'notebook-like' fashion. If you don't have a workflow set up to build PyScript from that branch, let me know and I can build a static copy you can like to for testing. (This may be orthogonal to the issue - per Fabio's comments, this may be a conflict between PyScript's rendering and Vue, which is a little outside my wheelhouse.) |
our current py-terminal or py-editor is different and it should just work. I think we can close this now but if that's not the case, feel free to re-open the issue or file a new one, thank you! |
Checklist
What happened?
I was previously using alpha pyscript but when I switched to latest
https://pyscript.net/latest/pyscript.js
Suddenly my REPL component is not printing the output when I press the green run button. The correct output is printed in the browser console but not in my
What browsers are you seeing the problem on? (if applicable)
Chrome
Console info
Additional Context
The text was updated successfully, but these errors were encountered: