mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 21:16:26 +08:00
Include explicit kino requirement on error message (#2260)
This commit is contained in:
parent
58cc503683
commit
f0ca13c88a
2 changed files with 12 additions and 3 deletions
|
@ -1,7 +1,13 @@
|
|||
defmodule Livebook.Runtime.Definitions do
|
||||
@kino_requirement "~> 0.11.0"
|
||||
|
||||
def kino_requirement do
|
||||
@kino_requirement
|
||||
end
|
||||
|
||||
kino = %{
|
||||
name: "kino",
|
||||
dependency: %{dep: {:kino, "~> 0.11.0"}, config: []}
|
||||
dependency: %{dep: {:kino, @kino_requirement}, config: []}
|
||||
}
|
||||
|
||||
kino_vega_lite = %{
|
||||
|
|
|
@ -410,9 +410,12 @@ defmodule LivebookWeb.Output do
|
|||
end
|
||||
|
||||
defp render_output(output, %{}) do
|
||||
req = Livebook.Runtime.Definitions.kino_requirement()
|
||||
|
||||
render_error_message("""
|
||||
Unknown output format: #{inspect(output)}. If you're using Kino,
|
||||
you may want to update Kino and Livebook to the latest version.
|
||||
Unknown output format: #{inspect(output)}. You may want to explicitly \
|
||||
add {:kino, "#{req}"} as a notebook dependency or update to the latest \
|
||||
Livebook.
|
||||
""")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue