You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why don't we still get this? I understand that all languages might not have a playground like rust. But in that case we may use our own backend. (Maybe specify that in book.toml?)
I was patching my book.js to add my own backend, but I found myself reinventing the wheel. Like, in python playground playground_text function returns empty string everytime. Also the output text gets written into the source code block instead of a new one.
But that works if I use rust instead. Also we get a different run button than rust in python playground. Why that? I don't know if you guys hard-coded that for rust only. If so, please make them dynamic so atleast we can do easy patches until any official solution becomes available.
The text was updated successfully, but these errors were encountered:
Sorry, I don't fully understand what this issue is asking. If it is about supporting other languages for remote code execution, then that is tracked in #350.
Yes, What I was actually looking for is remote code execution. But the UI also differs when using rust vs other languages. Like I get another run button (top left corner, always visible) when using python code block rather than what I get in rust (top right, visible on hover) code block. The UI should be the same for all languages, shouldn't it?
Also as I mentioned, I changed the book.js fetch url to my own api. But the playground_text() function in the javascript file returns "" in python code block, which isn't the case in rust code block (with the same javascript file)
I can't say why the run button is different. However, since other languages aren't supported, I'm not too surprised there are issues. I'm going to close as a duplicate of #350, as this seems to be essentially the same issue. If and when that is fixed, I'm sure getting the UI working would be part of that.
Why don't we still get this? I understand that all languages might not have a playground like rust. But in that case we may use our own backend. (Maybe specify that in
book.toml
?)I was patching my
book.js
to add my own backend, but I found myself reinventing the wheel. Like, in python playgroundplayground_text
function returns empty string everytime. Also the output text gets written into the source code block instead of a new one.But that works if I use rust instead. Also we get a different run button than rust in python playground. Why that? I don't know if you guys hard-coded that for rust only. If so, please make them dynamic so atleast we can do easy patches until any official solution becomes available.
The text was updated successfully, but these errors were encountered: