ruby-numo / numo-narray

Ruby/Numo::NArray - New NArray class library
http://ruby-numo.github.io/narray/
BSD 3-Clause "New" or "Revised" License
415 stars 41 forks source link

How to display large NArrays in IRuby #124

Closed kojix2 closed 4 years ago

kojix2 commented 5 years ago

IRuby Support

June 21, 2016 @zalt50 added NArray support to IRuby. https://github.com/SciRuby/iruby/commit/746dda732ab1c4b331a5be32ef4242ed4df6bed9#diff-bf1f0c458ec5b742a81d7fe903b3a8d6

At this time I thought it was a good idea. Array of size of 10x10 is displayed like this beautifully.

image

there were very few users who wanted to run Deep Learning using Ruby in 2016, and such a display was good.

Display a larger matrix

Today, the beautiful rendering of MathJax is annoying.

Ruby

It does not fit in the window. Sometimes the browser freezes. image

Julia

image

Python

image

NArray in Terminal

image

Of course, this is not a problem with NArray itself. However, NArray is often used with IRuby. How to display NArray should be discussed here.

Thank you.

kojix2 commented 4 years ago

IRuby now displays NArray as text by default. Thank you.