Skip to content

DOC/BLD: inter sphinx numpy #9802

Closed as not planned
Closed as not planned

Description

@jklymak

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`

Activity

  1. dstansby commented on Nov 16, 2017

    @dstansby
    Member

    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.

  2. efiring commented on Nov 16, 2017

    @efiring
    Member

    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
    
  3. dstansby commented on Nov 16, 2017

    @dstansby
    Member

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

  4. anntzer commented on Nov 16, 2017

    @anntzer
    Contributor

    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...

  5. dstansby commented on Nov 16, 2017

    @dstansby
    Member

    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

  6. changed the title [-]DOC/BLD: inter sphinx bumpy[/-] [+]DOC/BLD: inter sphinx numpy[/+] on Nov 16, 2017
  7. jklymak commented on Nov 16, 2017

    @jklymak
    MemberAuthor

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

  8. anntzer commented on Nov 16, 2017

    @anntzer
    Contributor

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

  9. github-actions commented on Apr 24, 2023

    @github-actions

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions