logo

How to Preview a DataFrame in vscode julia 📂Julia

How to Preview a DataFrame in vscode julia

Guide 1

julia> using DataFrames

julia> df = DataFrame(a = 10:-1:1, b = 'a':'j')
10×2 DataFrame
 Row │ a      b    
     │ Int64  Char
─────┼─────────────
   1 │    10  a
   2 │     9  b
   3 │     8  c
   4 │     7  d
   5 │     6  e
   6 │     5  f
   7 │     4  g
   8 │     3  h
   9 │     2  i
  10 │     1  j

julia> Main.VSCodeServer.vscodedisplay(df)

For example, running the above code will open a tab called ‘Julia Table’ in vscode like this:

Environment

  • OS: Windows
  • julia: v1.9.0
  • vscode: v1.81.1