Hi, Peter,    I don't know whether it can help you since I did not repeat your 
code. But it acturally works in my computer:        change the extended name 
from .svg into .html and open it via chrome.    It should be valid with 
svg2.svg (the namespace of svg were removed).

Hongbin Yang 

 From: Peter S. ShenkinDate: 2016-10-25 13:27To: Dmitri MaziukCC: RDKit 
DiscussSubject: Re: [Rdkit-discuss] Fwd:  2D drawing with atoms labeled by 
indexHi,
Dima wrote:Try saving the text (svg/svg2) to a file and opening it in chrome 
(if you can actually open a file in chrome) or some other application.
I actually did that, and in a second email I reported:Chrome thinks svg.svg is 
emptyWhen I load svg2.svg, Chrome complains, "This XML file does not appear to 
have any style information associated with it. The document tree is shown 
below...." -P.
On Tue, Oct 25, 2016 at 12:28 AM, Dmitri Maziuk <dmitri.maz...@gmail.com> wrote:
OK, my turn: that went out too soon.



It seems to me that jypiter, ipython, or whatever, has no idea how render MIME 
type image/svg+xml. It can display an "SVG" object, but the bit that turned 
image/svg+xml into "SVG" does not understand XML namespaces (that's been around 
since at least 2009).



Try saving the text (svg/svg2) to a file and opening it in chrome (if you can 
actually open a file in chrome) or some other application.



Dima






------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to