Skip to content

Conversation

@michaelkpfeifer
Copy link

Adding a ":results output" option suppresses the output of the respective computation in IEx. This allows to use IO.puts/2 or IO.inspect/2 without displaying the result of the computation.

Compare

      #+BEGIN_SRC elixir :results output
        IO.inspect List.to_string('hello')
        IO.inspect String.to_charlist("hello")
      #+END_SRC

      #+RESULTS:
      : "hello"
      : 'hello'

to

      #+BEGIN_SRC elixir
        IO.inspect List.to_string('hello')
        IO.inspect String.to_charlist("hello")
      #+END_SRC

      #+RESULTS:
      : "hello"
      : 'hello'
      : 'hello'

Adding a ":results output" option suppresses the output of the respective
computation in IEx. This allows to use IO.puts/2 or IO.inspect/2 without
displaying the result of the computation.
In some cases, the output prouced by 'ob-elixir-eval' includes a :"do
not show this result in output" value that is not displayed by IEx.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant