mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-07 20:16:31 +08:00
Format
This commit is contained in:
parent
c458a06a05
commit
940d511bdb
1 changed files with 2 additions and 2 deletions
|
@ -419,7 +419,7 @@ defmodule Livebook.Runtime.Definitions do
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
type: :file_action,
|
type: :file_action,
|
||||||
file_types: [".xlsx",".xlsm"],
|
file_types: [".xlsx", ".xlsm"],
|
||||||
description: "Read sheets",
|
description: "Read sheets",
|
||||||
source: """
|
source: """
|
||||||
xlsx_file = Kino.FS.file_path("{{NAME}}")
|
xlsx_file = Kino.FS.file_path("{{NAME}}")
|
||||||
|
@ -432,7 +432,7 @@ defmodule Livebook.Runtime.Definitions do
|
||||||
maps = Enum.map(rows, fn row -> header |> Enum.zip(row) |> Map.new() end)
|
maps = Enum.map(rows, fn row -> header |> Enum.zip(row) |> Map.new() end)
|
||||||
{sheet, Kino.DataTable.new(maps)}
|
{sheet, Kino.DataTable.new(maps)}
|
||||||
end
|
end
|
||||||
|
|
||||||
Kino.Layout.tabs(tabs)
|
Kino.Layout.tabs(tabs)
|
||||||
""",
|
""",
|
||||||
packages: [kino, xlsx_reader]
|
packages: [kino, xlsx_reader]
|
||||||
|
|
Loading…
Add table
Reference in a new issue