Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #1381 > unrolled thread

How can I see multiple results in a Jupyter notebook?

Started by"peter....@gmail.com" <peter.luschny@gmail.com>
First post2023-04-30 03:24 -0700
Last post2023-04-30 19:08 +0200
Articles 4 — 2 participants

Back to article view | Back to comp.soft-sys.math.maple


Contents

  How can I see multiple results in a Jupyter notebook? "peter....@gmail.com" <peter.luschny@gmail.com> - 2023-04-30 03:24 -0700
    Re: How can I see multiple results in a Jupyter notebook? Rainer Rosenthal <r.rosenthal@web.de> - 2023-04-30 15:57 +0200
      Re: How can I see multiple results in a Jupyter notebook? "peter....@gmail.com" <peter.luschny@gmail.com> - 2023-04-30 07:24 -0700
        Re: How can I see multiple results in a Jupyter notebook? Rainer Rosenthal <r.rosenthal@web.de> - 2023-04-30 19:08 +0200

#1381 — How can I see multiple results in a Jupyter notebook?

From"peter....@gmail.com" <peter.luschny@gmail.com>
Date2023-04-30 03:24 -0700
SubjectHow can I see multiple results in a Jupyter notebook?
Message-ID<34936c4d-2c2e-4322-b880-71246ebec4f6n@googlegroups.com>
I already addressed the topic in the last post, but apparently it is not directly connected with "print". So how do I see the output of these lines?

egf := (1 + x*exp(x*z + z))/(x + 1);
c := n -> normal(n!*coeff(series(egf, z, 9), z, n));
for n from 0 to 6 do
    seq(coeff(c(n), x, k), k = 0 .. n);
end do;

What I expect is:
                               1
                              0, 1
                            0, 1, 1
                           0, 1, 2, 1
                         0, 1, 3, 3, 1
                        0, 1, 4, 6, 4, 1
                     0, 1, 5, 10, 10, 5, 1

What I get is:
                     0, 1, 5, 10, 10, 5, 1

This is just unreal!

[toc] | [next] | [standalone]


#1382

FromRainer Rosenthal <r.rosenthal@web.de>
Date2023-04-30 15:57 +0200
Message-ID<kb7ae4FsbsfU1@mid.individual.net>
In reply to#1381
Am 30.04.2023 um 12:24 schrieb peter....@gmail.com:
> ... it is not directly connected with "print".

I think it's connected indirectly.
the expressions in your loop are printed without line feed.
Try to add a second statement in the loop body.

Cheers,
Rainer


[toc] | [prev] | [next] | [standalone]


#1384

From"peter....@gmail.com" <peter.luschny@gmail.com>
Date2023-04-30 07:24 -0700
Message-ID<5e177c4c-54c4-444d-9d28-219f6e1d3f62n@googlegroups.com>
In reply to#1382
> > ... it is not directly connected with "print". 
> I think it's connected indirectly. 

Sure, ultimately all characters are sent to a device, but please not to /dev/null !

> Try to add a second statement in the loop body. 

Ok, so I inserted print("?\n"); in the loop body.
The surprise is that this (and only this) can be seen in this case:
   "
🤔

[toc] | [prev] | [next] | [standalone]


#1385

FromRainer Rosenthal <r.rosenthal@web.de>
Date2023-04-30 19:08 +0200
Message-ID<kb7lkmFu1tgU1@mid.individual.net>
In reply to#1384
Am 30.04.2023 um 16:24 schrieb peter....@gmail.com:
>>> ... it is not directly connected with "print".
>> I think it's connected indirectly.
> 
> Sure, ultimately all characters are sent to a device, but please not to /dev/null !
> 
>> Try to add a second statement in the loop body.
> 
> Ok, so I inserted print("?\n"); in the loop body.
> The surprise is that this (and only this) can be seen in this case:
>     "
> 🤔

Well, at least SOMETHING changed :-)

Greetings,
Rainer

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.maple


csiph-web