mojaie / MolecularGraph.jl_notebook

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

MethodError: no method matching show #2

Closed ryszard314159 closed 3 years ago

ryszard314159 commented 3 years ago

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

I am getting the error above while running the snippet of code from Getting Started:

mol = sdftomol(joinpath(data_dir, "Cefditoren Pivoxil.mol"))
molsvg = drawsvg(mol, 300, 300)
display("image/svg+xml",  molsvg
mojaie commented 3 years ago

Thank you for trying the tutorial. I'm sorry that README.md document is still not so helpful.

Do you use Jupyter Notebook with Julia kernel ? If not, please set up Julia kernel according to IJulia instruction. https://github.com/JuliaLang/IJulia.jl

Or, you can get SVG file by write(open(OUTPUT_FILE_PATH, "w"), molsvg) instead.

ryszard314159 commented 3 years ago

Hi Seiji,

Thank you for your reply. Yes

Pkg.add("IJulia")

solved my problem...

Thanks again! Ryszard Ryszard Czerminski 508-358-6328 @.*** LinkedIn.com/in/Ryszard.Czerminski http://LinkedIn.com/in/RyszardCzerminski

On Wed, Jun 2, 2021 at 8:20 PM Seiji Matsuoka @.***> wrote:

Thank you for trying the tutorial. I'm sorry that README.md document is still not so helpful.

Do you use Jupyter Notebook with Julia kernel ? If not, please set up Julia kernel according to IJulia instruction. https://github.com/JuliaLang/IJulia.jl

Or, you can get SVG file by write(open(OUTPUT_DIR, "w"), molsvg) instead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mojaie/MolecularGraph.jl_notebook/issues/2#issuecomment-853465590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB23HJN3VBBGDN47WSGCK5LTQ3DDZANCNFSM457HF43Q .