DataFrames output is Latex when using in a notebook

Running a notebook within VSCode and seeing some problems with DataFrames.

Might be a quick PR to detect the display? I am not entirely sure how the display stack works. Happy to help debug with someone.

This is weird. You don’t have anything in your startup.jl that’s causing this?

I don’t have a startup.jl file at all. Is there a way to see what Dataframes thinks the cell is (i.e. HTML, REPL, etc?). By the way, show(_data) works fine.

699×12 DataFrame
 Row │ Column1  ID       thickness  cell_size  cell_shape  adhesion  epithelia ⋯
     │ Int64    Int64    Int64      Int64      Int64       Int64     Int64     ⋯
─────┼──────────────────────────────────────────────────────────────────────────
   1 │       1  1000025          5          1           1         1            ⋯
   2 │       2  1002945          5          4           4         5
   3 │       3  1015425          3          1           1         1
   4 │       4  1016277          6          8           8         1
   5 │       5  1017023          4          1           1         3            ⋯
   6 │       6  1017122          8         10          10         8
   7 │       7  1018099          1          1           1         1
   8 │       8  1018561          2          1           2         1
   9 │       9  1033078          2          1           1         1            ⋯
  10 │      10  1033078          4          2           1         1
  11 │      11  1035283          1          1           1         1
  ⋮  │    ⋮        ⋮         ⋮          ⋮          ⋮          ⋮             ⋮  ⋱
 690 │     690   654546          1          1           1         1
 691 │     691   654546          1          1           1         3            ⋯
 692 │     692   695091          5         10          10         5
 693 │     693   714039          3          1           1         1
 694 │     694   763235          3          1           1         1
 695 │     695   776715          3          1           1         1            ⋯
 696 │     696   841769          2          1           1         1
 697 │     697   888820          5         10          10         3
 698 │     698   897471          4          8           6         4
 699 │     699   897471          4          8           8         5            ⋯
                                                  6 columns and 678 rows omitted

slightly misaligned at the break, but that might just be a vscode notebook issue.

I can’t replicate using a notebook, so I think you will have to post an MWE

A notebook on vscode? It works fine for me in Jupyter Lab, but not on vscode. I am not sure what information to provide

df = DataFrame(a = rand(10), b = rand(10))

simply outputs the Latex… unless I do show(df) or pipe to df |> pretty_table