Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Eric Wieser
Foad: having the functionality for conventional consols would also help I think the most important thing in a conventional console is to output the array in a format that allows you to reconstruct the object. That makes it way easier for people to reproduce each others problems without having the

Re: [Numpy-discussion] Prep for NumPy 1.16.0 branch

2018-11-06 Thread Stephan Hoyer
On Tue, Nov 6, 2018 at 6:08 PM Stefan van der Walt wrote: > On Sun, 04 Nov 2018 17:16:12 -0800, Stephan Hoyer wrote: > > On Sun, Nov 4, 2018 at 10:32 AM Marten van Kerkwijk < > > m.h.vankerkw...@gmail.com> wrote: > > > > > For `__array_function__`, there was some discussion in > > > https://githu

[Numpy-discussion] Weekly status meeting 8.11 at 12:00 pacific time

2018-11-06 Thread Matti Picus
We will be holding our weekly BIDS NumPy status meeting on Thurs Nov 8 at noon pacific time. We moved the meeting to Thursday because of a scheduling conflict. Please join us. The draft agenda, along with details of how to join, is up at https://hackmd.io/TTurMvviSkarcxf8vURq-Q?both Previous

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Robert Kern
On Tue, Nov 6, 2018 at 3:55 PM Stefan van der Walt wrote: > On Tue, 06 Nov 2018 12:11:13 -0800, Robert Kern wrote: > > Popular, but quite misleading, in the same way that not every 2-dim array > > is a matrix. As someone who works on tensor machine learning methods once > > complained to me. > >

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Stefan van der Walt
On Tue, 06 Nov 2018 12:11:13 -0800, Robert Kern wrote: > Popular, but quite misleading, in the same way that not every 2-dim array > is a matrix. As someone who works on tensor machine learning methods once > complained to me. Are you referring to vectors, structured arrays, or something else? St

Re: [Numpy-discussion] Prep for NumPy 1.16.0 branch

2018-11-06 Thread Stefan van der Walt
On Sun, 04 Nov 2018 17:16:12 -0800, Stephan Hoyer wrote: > On Sun, Nov 4, 2018 at 10:32 AM Marten van Kerkwijk < > m.h.vankerkw...@gmail.com> wrote: > > > For `__array_function__`, there was some discussion in > > https://github.com/numpy/numpy/issues/12225 that for 1.16 we might want > > to follo

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Foad Sojoodi Farimani
Hello Numpyers, I just added the pretty printing for 3D arrays too: https://stackoverflow.com/a/53164538/491 I would highly appreciate if you could check the implementation and let me know how do you think about it. Best, Foad On Mon, Nov 5, 2018 at 10:44 PM Foad Sojoodi Farimani < f.s.farim

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Robert Kern
On Tue, Nov 6, 2018 at 6:43 AM Charles R Harris wrote: > > On Tue, Nov 6, 2018 at 3:56 AM Foad Sojoodi Farimani < > f.s.farim...@gmail.com> wrote: > >> Dear András, >> >> Try those different option in MATLAB for example. or >> Octave/Scilab/Sympy-Matrix... they are all the same. >> > Of course, t

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Charles R Harris
On Tue, Nov 6, 2018 at 3:56 AM Foad Sojoodi Farimani wrote: > Dear András, > > Try those different option in MATLAB for example. or > Octave/Scilab/Sympy-Matrix... they are all the same. The term > "multidimensional arrays" is a little bit vague. one might think of > multidimensional matrices (

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Foad Sojoodi Farimani
Dear András, Try those different option in MATLAB for example. or Octave/Scilab/Sympy-Matrix... they are all the same. The term "multidimensional arrays" is a little bit vague. one might think of multidimensional matrices ( I don't think there is such a thing in math) if coming from MATLAB. I als

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Andras Deak
On Tue, Nov 6, 2018 at 8:26 AM Foad Sojoodi Farimani wrote: > > Dear Mark, > > Thanks for the reply. I will write in between your lines: > > On Tue, Nov 6, 2018 at 6:11 AM Mark Harfouche > wrote: >> >> Foad, >> >> Visualizing data is definitely a complex field. I definitely feel your pain. > > I

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Mark Harfouche
To install spyder I wonder if Anaconda is a possibility. It also installs a lot of packages that your pupils/peers might be using but that you might not anticipate. On a semi-related note, a recent change to the repr broke a lot of downstream tests. Htlm and latex reprs are probably easier to exp

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Foad Sojoodi Farimani
In between your lines: On Tue, Nov 6, 2018 at 11:07 AM Mark Harfouche wrote: > Foad, > In response to: > > Thanks but I know it is very bad: > >- it does not work properly for floats >- it only works for 1D and 2D >- there can be some recursive function I believe. > > I think this is

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Mark Harfouche
Foad, In response to: Thanks but I know it is very bad: - it does not work properly for floats - it only works for 1D and 2D - there can be some recursive function I believe. I think this is the awesome part about being able to write 10 lines of code that are specified to representing

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Foad Sojoodi Farimani
Wow, this is awesome. Some points though: - not everybody uses IPython/Jupyter having the functionality for conventional consols would also help. something like Sypy's init_printing/init_session which smartly chooses the right representation considering the terminal. - I don't think

Re: [Numpy-discussion] numpy pprint?

2018-11-06 Thread Eric Wieser
Here's how that could look https://numpyintegration-ericwieser.notebooks.azure.com/j/notebooks/pprint.ipynb Feel free to play around and see if you can produce something more useful On Mon, 5 Nov 2018 at 23:28 Foad Sojoodi Farimani wrote: > It is not highking if I asked for it :)) > for IPyt