gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extra line in the outputs

hasanAjsf opened this issue · comments

In all my outputs I get extra line showing output length and , which looks for me as (string, error) , as underlined below is my understandin correct, and is this an optional output?

image

Hi @hajsf,
this is intentional. The Out[n] lines you are seeing list the return values of the expression being evaluated.

It can be confusing when the expression both writes to standard output / standard error and return some values - that's exactly what fmt.Printf does: it also returns the number of bytes written and any error. That's what you are seeing.

It should be clearer from the example below, which do not have side effects
image