Skip to content

Commit

Permalink
fix IJulia sometimes misprinting field types
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 committed Jun 17, 2021
1 parent b1ca09a commit 816cffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ function Base.summary(io::IO, x::ImplicitField)
Base.showarg(io, x, true)
end

# without this, *sometimes* IJulia doesnt print the field types right, but I dont really understand it
@init @require IJulia="7073ff75-c697-5162-941a-fcdaad2a7d2a" begin
Base.show(io::IOContext{IOBuffer}, t::Type{<:Union{Field,FieldOp}}) = print(io, typealias(t))
end


### logdet

Expand Down

0 comments on commit 816cffd

Please sign in to comment.