Skip to content

Commit

Permalink
fix ipywidgets conversion to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
schlichtanders committed Oct 15, 2024
1 parent 38a5cfd commit 8ad28e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JolinPluto"
uuid = "5b0b4ef8-f4e6-4363-b674-3f031f7b9530"
authors = ["Stephan Sahm <[email protected]> and contributors"]
version = "0.1.89"
version = "0.1.90"

[deps]
AbstractPlutoDingetjes = "6e696c72-6542-2067-7265-42206c756150"
Expand Down
1 change: 1 addition & 0 deletions ext/PythonCallExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ end

function pyshow_rule_ipywidgets(io::IO, mime::String, x::Py)
mime == "text/html" || return false
"ipywidgets" in @pyconst(pyimport("sys")).modules || return false
pyissubclass(pytype(x), @pyconst(pyimport("ipywidgets").widgets.ValueWidget)) || return false
try
show(io, mime, JolinPluto.IPyWidget(x))
Expand Down

0 comments on commit 8ad28e1

Please sign in to comment.