# DataFrames output is Latex when using in a notebook

**URL:** <https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900>\
**Category:** General Usage\
**Created:** [May 10, 2021, 4:54pm UTC](https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900 "2021-05-10T16:54:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [May 10, 2021, 4:54pm UTC](https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900/1 "2021-05-10T16:54:41Z")

</div>

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

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/d/ad925ee8b91feed49b02d55a1daea6af19e1f5ab.png)

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.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [May 10, 2021, 5:31pm UTC](https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900/2 "2021-05-10T17:31:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [May 10, 2021, 9:33pm UTC](https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900/3 "2021-05-10T21:33:02Z")

</div>

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.

```julia
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.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [May 10, 2021, 9:54pm UTC](https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900/4 "2021-05-10T21:54:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [May 10, 2021, 9:59pm UTC](https://discourse.julialang.org/t/dataframes-output-is-latex-when-using-in-a-notebook/60900/5 "2021-05-10T21:59:49Z")

</div>

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

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

```

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