Copy/paste to/from Excel, Google Sheets, and other tabular data sources into interactive Julia sessions.
Interactive Julia sessions include the REPL, Pluto notebooks, Jupyter notebooks, and more!
ClipData uses CSV.jl under the hood for fast and flexible parsing of tabular data on the clipboard.
cliptable()
will copy data from the clipboard into aCSV.File
. Pass to aDataFrame
to create a dataframe object.cliptable(data)
will copy the Julia variabledata
to the clipboard
cliptable.mp4
cliparray()
will copy data from the clipboard into a Julia array.cliparray(data)
will copy the Julia variabledata
to the clipboard
cliparray.mp4
Keyword arguments passed to cliptable
or cliparray
will be passed to CSV.jl, so you can customize the behavior of the data "pasted" to Julia. See the CSV.jl docs for more info.
This will remove whitespace and standardize headers for tabular data:
cliptable(;normalizenames=true)
ClipData also generates code to make it easy to copy and paste data to a script. This is ideal for slowly transitioning a complicated Excel workbook to a more reproducible Julia script.
mwetable()
will create copy-and-pasteable code to construct a Julia table from the clipboard.mwetable(data)
will do the same from an existing Julia object.
You can also create Minimum Working Examples with arrays through the function mwearray
.