|
From: John H. <jd...@gm...> - 2008-09-13 14:30:49
|
On Thu, Sep 11, 2008 at 5:49 PM, Ted Drain <ted...@jp...> wrote: > Mike, > Thanks for the info. I noticed in plot_directive.py that ipython seems to > be required to build the docs. Is that absolutely needed or is it a > holdover from doing something else? I'm asking because we would like to > build the docs locally but don't currently install ipython. I could change > that but it's just an artifact of something else it might be better to > remove that dependency. I replaced the ipython shell magic_run functionality with the basic code.InteractiveConsole.runsource function. This works fine -- we may lose some of ipython's nice traceback functionality so if we want we can have a switch that uses ipython if available and falls back on the default code module, but for now I have simply removed the ipython dependency. For some reason runsource prints the intro docstring to the console from files passed to runsource -- not sure how suppress this but it is a minor nuisance. JDH |