-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipython 3.0 broke my readthedocs build #7941
Comments
The same think happened for the matplotlib docs build. IPython defines a number of additional targets here that can be installed with pip as
The intention is that the default one should only install dependencies needed for the ipython terminal. |
Hmm. It shouldn't really require those, but Probably the best fix would be to move the lexers to somewhere that both nbconvert and sphinxext can import them. |
Is the [doc] target for using ipython to build docs, or for building Someone might also want to double-check that these are the only packages
|
I think the doc target is for building IPython's own docs, but I don't think this is written down anywhere. |
When some nbconvert handlers depended on sphinx, we tried to make sure it wasn't imported unless those actual exporters were being used. We should probably do the same with mistune. |
@takluyver I dealt with the mistune import in #7953. Where do you think the lexers should go, keeping in mind the repo split? utils? |
Hmm, that's tricky. It doesn't feel like something that should be in utils, but putting it in either nbconvert or sphinxext introduces a dependency that shouldn't really be there (nbconvert highlighting shouldn't depend on Sphinx; sphinx highlighting shouldn't depend on nbformat), and I don't want to start splitting out every little module into its own package. Not sure. |
Maybe in IPython.utils (part of the utils that stays with IPython Prime), or IPython.lib. I've never really known what IPython.lib was for... |
AIUI, IPython.utils was inteded for generic utility functions, and IPython.lib for things specifically relevant to IPython - so things like get_ipython_dir(), which is actually in utils, 'should' be in lib. But we've never really enforced any distinction. So lib would probably make sense for this. And it's fine for both of those pieces to depend on 'IPython Prime' (great name). |
lib makes sense, then. |
Closes ipythongh-7941 I've left a backwards compatibility module in IPython.nbconvert.utils.lexers - I don't know if anyone is importing it directly, but since we put it in entry points, we should probably consider it public API.
Closes ipythongh-7941 I've left a backwards compatibility module in IPython.nbconvert.utils.lexers - I don't know if anyone is importing it directly, but since we put it in entry points, we should probably consider it public API.
Thanks!
|
Closes ipythongh-7941 I've left a backwards compatibility module in IPython.nbconvert.utils.lexers - I don't know if anyone is importing it directly, but since we put it in entry points, we should probably consider it public API.
Not sure if this is a bug but it sure was annoying.
patsy.readthedocs.org uses
IPython.sphinxext.ipython_directive
andIPython.sphinxext.ipython_console_highlighting
. It installs these by providing RTD with a requirements.txt which contains the stringipython
, sopip install ipython
happens.When 3.0 arrived on PyPI, this stopped working: suddenly my RTD builds are failing. Grovelling through the logs reveals that the
pip install ipython
went through fine, but then trying to import the sphinx extensions bailed out saying that I have to installjsonschema
. Okay, fine, I added that to requirements.txt. Now it bailed out complaining about the lack ofmistune
. Okay, google says that should be pip installable too, so I added that to requirements.txt too. Now it seems to be working? But it seems like you have some broken install_requires or something?The text was updated successfully, but these errors were encountered: