Hi Takeshi, Thank you for the info and links -- I was able to write a modified OnlyNodeTransform to do what I needed and added it to the extension.
Cheers, Matt On Tue, Sep 11, 2018 at 10:04 PM Komiya Takeshi <[email protected]> wrote: > Hi, > > Welcome to extension developing! > > Where did you embed pdb and logger? If you put them into visit_only() > method, they are never called. > Because all only nodes are removed before processing Translator (on > resolving phase). > > If you want to check it before removing, please use post_transform. > > refs: > * > http://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_post_transform > * sphinx/transforms/post_transforms/__init__.py (OnlyNodeTransform) > > Thanks, > Takeshi KOMIYA > 2018年9月11日(火) 18:05 Matt McKay <[email protected]>: > > > > Hi, > > > > I am writing a Sphinx extension that builds Jupyter notebooks as a > target. > > > > We have the basic framework up and running: > https://github.com/QuantEcon/sphinxcontrib-jupyter > > > > I would like to speed up development by being able to understand the > state of `nodes` in the node tree by dropping into `pdb` and inspecting the > state of execution at a point in the extension (i.e. when entering the > visit_only method). I have tried adding `import pdb; pdb.set_trace()` but > it seems to be ignored. > > > > I have also tried using `sphinx.util.logger` but am unable to get this > to work for printing information out to the console? > > > > I have read: > > > > http://www.sphinx-doc.org/en/master/man/sphinx-build.html > > http://www.sphinx-doc.org/en/master/devguide.html#debugging-tips > > > > but they didn't solve my problem. > > > > Here is an issue I have raised on the repo: > https://github.com/QuantEcon/sphinxcontrib-jupyter/issues/89 > > > > Any recommendations / tips would be most appreciated. Thanks! > > > > -- > > You received this message because you are subscribed to the Google > Groups "sphinx-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To post to this group, send email to [email protected]. > > Visit this group at https://groups.google.com/group/sphinx-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
