Float set_printoptions

Using this function in IPynb is helpful for interactive coding with arrays of floats.

numpy.set_printoptions(precision = 3)

I have been unable to figure out what the Julia or IJulia alternative is. My current fix is to broadcast round to every array at the end of a cell.

round.(a, digits = 3)

Is there a global option to round or truncate float output in IJulia?

2 Likes