srepl is python/sage specific
Right now, the srepl
environment knows how to separate code blocks by indentation, which is what python (and hence) sage does. But for other languages, it does not work. This could cause some confusion in the user.
Besides advertising this limitation in the documentation, I think there could be other possible approaches:
- Implement other language-specific repl environments (
jrepl
for julia,rrepl
for R ... ). - Try to include all those cases in the same
srepl
enviroment - Just leave it as it is, and make very clear in the documentation this limitation.
(3.) Is the easiest one. If we follow this approach, at least we could implement easily some environment that creates two verbatim environments, one with the input code and another with the output (just as it would happen in a jupyter cell).
(1.) has the advantage over (2.) that it makes clearer to the user the fact that these environments are language specific. But (2.) might be easier to document.
What do you think?