File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -262,18 +262,26 @@ macro enable_all_show_via_expressify(T)
262262 AbstractAlgebra. show_via_expressify (io, mi, x)
263263 end
264264
265- function Base. show (io :: IO , mi:: MIME"text/latex" , x:: $ (esc (T)))
265+ function Base. showable ( mi:: MIME"text/latex" , x:: $ (esc (T)))
266266 if isdefined (Main, :IJulia ) && Main. IJulia. inited
267- error ( " Dummy error for jupyter " )
267+ return false
268268 end
269+ return true
270+ end
271+
272+ function Base. show (io:: IO , mi:: MIME"text/latex" , x:: $ (esc (T)))
269273 return AbstractAlgebra. show_via_expressify (io, mi, x)
270274 end
271275
272- function Base. show (io :: IO , mi:: MIME"text/html" , x:: $ (esc (T)))
276+ function Base. showable ( mi:: MIME"text/html" , x:: $ (esc (T)))
273277 if isdefined (Main, :IJulia ) && Main. IJulia. inited &&
274278 ! AbstractAlgebra. get_html_as_latex ()
275- error ( " Dummy error for jupyter " )
279+ return false
276280 end
281+ return true
282+ end
283+
284+ function Base. show (io:: IO , mi:: MIME"text/html" , x:: $ (esc (T)))
277285 return AbstractAlgebra. show_via_expressify (io, mi, x)
278286 end
279287 end
You can’t perform that action at this time.
0 commit comments