[Numpy-discussion] numpy pprint?
Foad Sojoodi Farimani
f.s.farimani at gmail.com
Tue Nov 6 02:28:19 EST 2018
It is not highking if I asked for it :))
for IPython/Jupyter using Markdown/LaTeX would be awesome
or even better using HTML to add sliders just like Pandas...
On Tue, Nov 6, 2018 at 6:51 AM Eric Wieser <wieser.eric+numpy at gmail.com>
> Hijacking this thread while on the topic of pprint - we might want to look
> into a table-based `_html_repr_` or `_latex_repr_` for use in ipython -
> where we can print the full array and let scrollbars replace ellipses.
> On Mon, 5 Nov 2018 at 21:11 Mark Harfouche <mark.harfouche at gmail.com>
>> Visualizing data is definitely a complex field. I definitely feel your
>> Printing your data is but one way of visualizing it, and probably only
>> useful for very small and constrained datasets.
>> Have you looked into set_printoptions
>> to see how numpy’s existing capabilities might help you with your
>> The code you showed seems quite good. I wouldn’t worry about performance
>> when it comes to functions that will seldom be called in tight loops.
>> As you’ll learn more about python and numpy, you’ll keep expanding it to
>> include more use cases.
>> For many of my projects, I create small submodules for visualization
>> tailored to the specific needs of the particular project.
>> I’ll try to incorporate your functions and see how I use them.
>> Your original post seems to have some confusion about C Style vs F Style
>> ordering. I hope that has been resolved.
>> There is also a lot of good documentation
>> about transitioning from matlab.
>> On Mon, Nov 5, 2018 at 4:46 PM Foad Sojoodi Farimani <
>> f.s.farimani at gmail.com> wrote:
>>> Hello everyone,
>>> Following this question <https://stackoverflow.com/q/53126305/4999991>,
>>> I'm convinced that numpy ndarrays are not MATLAB/mathematical
>>> multidimentional matrices and I should stop expecting them to be. However I
>>> still think it would have a lot of benefit to have a function like sympy's
>>> pprint to pretty print. something like pandas .head and .tail method plus
>>> .left .right .UpLeft .UpRight .DownLeft .DownRight methods. when nothing
>>> mentioned it would show 4 corners and put dots in the middle if the array
>>> is to big for the terminal.
>>> NumPy-Discussion mailing list
>>> NumPy-Discussion at python.org
>> NumPy-Discussion mailing list
>> NumPy-Discussion at python.org
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion