Skip to content

DOC/BLD: inter sphinx numpy #9802

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

Closed
jklymak opened this issue Nov 16, 2017 · 8 comments
Closed

DOC/BLD: inter sphinx numpy #9802

jklymak opened this issue Nov 16, 2017 · 8 comments

Comments

@jklymak
Copy link
Member

jklymak commented Nov 16, 2017

Bug report

Bug summary

Neither numpy.datetime64 nor :class:numpy.datetime64 links back to numpy. Could be operator error?

i.e. http://matplotlib.org/faq/howto_faq.html#plot-numpy-datetime64-values is composed w/

`numpy.datetime64`
@dstansby
Copy link
Member

dstansby commented Nov 16, 2017

I'm fairly sure it should be :numpy:class:`datetime64`, since "numpy" is the module name that intersphinx uses for lookup. I'll give it a go.

@efiring
Copy link
Member

efiring commented Nov 16, 2017

I don't know whether it is related, but the numpy docstring is misleading:

In [1]: import numpy

In [2]: numpy.datetime64?
Init signature: numpy.datetime64(self, /, *args, **kwargs)
Docstring:
Base class for numpy scalar types.

Class from which most (all?) numpy scalar types are derived.  For
consistency, exposes the same API as `ndarray`, despite many
consequent attributes being either "get-only," or completely irrelevant.
This is the class from which it is strongly suggested users should derive
custom scalar types.
File:           ~/anaconda/envs/test/lib/python3.5/site-packages/numpy/__init__.py
Type:           type

@dstansby
Copy link
Member

Never mind, ignore the above comment, I read the intersphinx docs completely wrong.

@anntzer
Copy link
Contributor

anntzer commented Nov 16, 2017

Probably because numpy forgot to add an intersphinx entry (see #9331 #8175 for similar instances on our side). I have a script to parse the intersphinx db somewhere...

@dstansby
Copy link
Member

dstansby commented Nov 16, 2017

python -m sphinx.ext.intersphinx 'https://docs.scipy.org/doc/numpy/objects.inv' | grep 'datetime64' doesn't output anything. (remove the grep to see the whole intersphinx inventory for numpy), so I think you're right @anntzer

@jklymak jklymak changed the title DOC/BLD: inter sphinx bumpy DOC/BLD: inter sphinx numpy Nov 16, 2017
@jklymak
Copy link
Member Author

jklymak commented Nov 16, 2017

Thanks all! Looks like its really an issue on their side, not ours. I'll leave open to monitor...

@anntzer
Copy link
Contributor

anntzer commented Nov 16, 2017

Oh nice, I never needed to write that script to start with then :p

@github-actions
Copy link

This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label Apr 24, 2023
@jklymak jklymak closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2023
@jklymak jklymak removed the status: inactive Marked by the “Stale” Github Action label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants