mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
- currently, test automatically opens sqlitebrowser - ext package is not well checked
24 lines
372 B
Julia
24 lines
372 B
Julia
module PSBoardDataBaseInteractiveUtilsExt
|
|
|
|
export import_dataframe
|
|
|
|
using PSBoardDataBase
|
|
using CSV
|
|
using DataFrames
|
|
using InteractiveUtils
|
|
|
|
"""
|
|
import_dataframe() -> DataFrame
|
|
|
|
Import dataframe from clipboard.
|
|
"""
|
|
function import_dataframe()
|
|
file = tempname()
|
|
finalizer(file) do x
|
|
@async rm(x)
|
|
end
|
|
|
|
CSV.read(file, DataFrame)
|
|
end
|
|
|
|
end # module
|