mojaie / MolecularGraph.jl_notebook

Notebook tutorials for MolecularGraph.jl
Creative Commons Attribution 4.0 International
11 stars 3 forks source link

Can not draw molecular graph in Pluto.jl #6

Closed CaiYitao closed 1 week ago

CaiYitao commented 2 years ago

It is ok to draw molecular graph in vscode, like this

image

but when using Pluto.jl it spits the following error:

MethodError: no method matching show(::Base.PipeEndpoint, ::MIME{Symbol("image/svg+xml")}, ::String)

Closest candidates are:

show(::IO, !Matched::AbstractString, ::Any) at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/base/multimedia.jl:111

show(::IO, !Matched::MIME{Symbol("text/tab-separated-values")}, ::Any) at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/DelimitedFiles/src/DelimitedFiles.jl:830

show(::IO, !Matched::MIME{Symbol("text/csv")}, ::Any) at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/DelimitedFiles/src/DelimitedFiles.jl:829

...

display(::TextDisplay, ::MIME{Symbol("image/svg+xml")}, ::Any)@multimedia.jl:249
display(::MIME{Symbol("image/svg+xml")}, ::Any)@multimedia.jl:342
display(::String, ::Any)@multimedia.jl:217
top-level scope@[Local: 4](http://localhost:1234/edit?id=e9263e26-88bc-11ec-3559-a986bb64f0c1#)[inlined]
mojaie commented 2 years ago

Thank you for reporting. Please refer https://github.com/mojaie/MolecularGraph.jl/issues/64