The REPL prints things differently, the same applies to e.g. array objects. You can use the display function if you want REPL-style output from a script.
For printing, OK. For storing the info on a variable, or on a data frame (which is the actual application), the variable apparently retains only the short form. Thus, we loose the information.
Is there a way to get GPU info from within Julia, without loosing such info?