-
Notifications
You must be signed in to change notification settings - Fork 13
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
.cb.run behaves inconsistently between languages in respect to implicit printing. #11
Comments
For
The examples you are showing seem consistent with that. Bash and R write to stdout under a lot of circumstances when Python, Julia, and other languages don't. Running
Can you say more about implicit figures for R and Sage? I don't have much experience creating figures with those languages. |
These differences should be underscored in the doc: after using R for more than 20 years and Sage for about 6 years, I ignored this (to be more precise, my everyday use of R and Sage never involved this). I tend to use both R and Sage in interactive session (usually via Possible redaction :
This last phrase needs, IMHO, expansion/clarifications...
Possibly illustrate by examples/counterexamples.
In interactive sessions, R and Sage (and, IIRC, Python/matprlotlib) open graphical windows and display the graphs. This transparency does not exist in I am thinking that a (langiage-dependent) set of helper wrappers might be a bonus for
|
According to the current state oif the documentation,
.cb.run
should give "raw" output. This does not happen with "implicit" output, i. e. the result of an evaluation without explicit printing: in this case, most of the interpreters print the result to their stanrd output.Nothing is printed when an inline expression in Python, Sage and Julia ; however, both R and bash give their raw output. When exported to markdown, the following code :
results in
And the export to PDF via latex gives "teletype" printing in the
nb
column and normal (i. e. roman) printing in the other columns.Similarly, the following code:
Gives the following result:
In both cases (inline and block), Python's, Sage's and Julia's implicit printings do not get in the output, whereas bash's and R's do.
This inconsistency should be fixed or, to the least, documented.
The same problem exists for the implicit printing of figures created by R or Sage. This should at least be documented...
The text was updated successfully, but these errors were encountered: