mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 05:25:57 +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
|
defmodule Livebook.Runtime.Definitions do
|
||||||
|
@kino_requirement "~> 0.11.0"
|
||||||
|
|
||||||
|
def kino_requirement do
|
||||||
|
@kino_requirement
|
||||||
|
end
|
||||||
|
|
||||||
kino = %{
|
kino = %{
|
||||||
name: "kino",
|
name: "kino",
|
||||||
dependency: %{dep: {:kino, "~> 0.11.0"}, config: []}
|
dependency: %{dep: {:kino, @kino_requirement}, config: []}
|
||||||
}
|
}
|
||||||
|
|
||||||
kino_vega_lite = %{
|
kino_vega_lite = %{
|
||||||
|
|
|
@ -410,9 +410,12 @@ defmodule LivebookWeb.Output do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp render_output(output, %{}) do
|
defp render_output(output, %{}) do
|
||||||
|
req = Livebook.Runtime.Definitions.kino_requirement()
|
||||||
|
|
||||||
render_error_message("""
|
render_error_message("""
|
||||||
Unknown output format: #{inspect(output)}. If you're using Kino,
|
Unknown output format: #{inspect(output)}. You may want to explicitly \
|
||||||
you may want to update Kino and Livebook to the latest version.
|
add {:kino, "#{req}"} as a notebook dependency or update to the latest \
|
||||||
|
Livebook.
|
||||||
""")
|
""")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue