Popularity
67 Stars
Updated Last
1 Year Ago
Started In
April 2021

ClipData.jl

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 for data with headers

  • cliptable() will copy data from the clipboard into a CSV.File. Pass to a DataFrame to create a dataframe object.
  • cliptable(data) will copy the Julia variable data to the clipboard
cliptable.mp4

cliparray for matrix or vector data

  • cliparray() will copy data from the clipboard into a Julia array.
  • cliparray(data) will copy the Julia variable data to the clipboard
cliparray.mp4

Keyword arguments

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.

Example

This will remove whitespace and standardize headers for tabular data:

cliptable(;normalizenames=true)

mwetable and mwearray for Minimum Working Examples

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.

Used By Packages

No packages found.