Groups | Search | Server Info | Login | Register


Groups > comp.soft-sys.math.maple > #1383

Re: Printing in Jupyter notebooks

From Rainer Rosenthal <r.rosenthal@web.de>
Newsgroups comp.soft-sys.math.maple
Subject Re: Printing in Jupyter notebooks
Date 2023-04-30 16:03 +0200
Message-ID <kb7apfFsbsfU2@mid.individual.net> (permalink)
References <c3ecfbbc-5729-4f75-9861-65e7f4bd6315n@googlegroups.com> <4920d869-beec-44d2-9d76-741a8764d77an@googlegroups.com> <kb5ggeFi4ooU3@mid.individual.net> <e0002139-6ca5-418b-9cb6-7bdc2cff0a9en@googlegroups.com>

Show all headers | View raw


Am 30.04.2023 um 07:31 schrieb peter....@gmail.com:
> RR> So maybe it's a problem with carriage return / line feed, i.e., the
> RR> lines are printed without line feed?
> 
> No, wouldn't you expect in this case the output "0 1 2 3 4 5"?
> The output is "5", as I wrote.
> 
As an assembler programmer of old, I used to feed printers and other 
output devices character by character. Sometimes ASCII and sometimes 
some fancy code.
ASCII code LF = 10 (decimal) is the 'line feed' control character.
The output device is expected to advance to the next line.
ASCII code CR = 13 (decimal) is the 'carriage return' control character.
The output device is expected to put the following characters at the 
first position of the same line.

I remember well the nice "wheeling around" when printing p, b, d, q 
cyclically on the screen, separated by CR. All characters showed up at 
the same place at the beginning of a line on the screen.

What a pity: I tried to replay this old joke, but in vain 🙁
Modern devices don't like a single CR and perform the LF action, too.
(Or, as in your case, they simply interpret CR as blank character.)

I'd love to see the trick again.

See https://en.wikipedia.org/wiki/Carriage_return
and https://en.wikipedia.org/wiki/Newline

Cheers,
Rainer

P.S. That didn't help you much, but I am quite certain that explained 
your experience.


Back to comp.soft-sys.math.maple | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Printing in Jupyter notebooks "peter....@gmail.com" <peter.luschny@gmail.com> - 2023-04-29 11:44 -0700
  Re: Printing in Jupyter notebooks Jerry Place <jerryplace.01@gmail.com> - 2023-04-29 12:59 -0700
    Re: Printing in Jupyter notebooks Rainer Rosenthal <r.rosenthal@web.de> - 2023-04-29 23:28 +0200
      Re: Printing in Jupyter notebooks "peter....@gmail.com" <peter.luschny@gmail.com> - 2023-04-29 22:31 -0700
        Re: Printing in Jupyter notebooks Rainer Rosenthal <r.rosenthal@web.de> - 2023-04-30 16:03 +0200
          Re: Printing in Jupyter notebooks jfh <harperjf2@gmail.com> - 2023-05-04 14:35 -0700

csiph-web