Skip to content

Commit f809e23

Browse files
author
Christopher Doris
committed
fix jl_help()
1 parent 06d3ad9 commit f809e23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/JlWrap/any.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,10 @@ function pyjlany_help(self, mime_::Py)
244244
mime = pyconvertarg(Union{Nothing,String}, mime_, "mime")
245245
doc = Docs.getdoc(self)
246246
if doc === nothing
247-
doc = Docs.doc(self)
247+
# hack: the relevant methods of Docs.doc are actually
248+
# in REPL, so we load it dynamically if needed
249+
@eval Main using REPL
250+
doc = invokelatest(Docs.doc, self)
248251
end
249252
x = Utils.ExtraNewline(doc)
250253
if mime === nothing

0 commit comments

Comments
 (0)