Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NumPy tutorials & educational content in notebook format

License

NotificationsYou must be signed in to change notification settings

numpy/numpy-tutorials

Repository files navigation

For the rendered tutorials, seehttps://numpy.org/numpy-tutorials/.

The goal of this repository is to provide high-quality resources by theNumPy project, both for self-learning and for teaching classes with. If you'reinterested in adding your own content, check theContributingsection. This set of tutorials and educational materials is not a part of theNumPy source tree.

To download a local copy of the.ipynb files, you can eitherclone this repositoryor navigate to any of the documents listed below and download it individually.

Content

  1. Learn to write a NumPy tutorial: our style guide for writing tutorials.
  2. Tutorial: Linear algebra on n-dimensional arrays
  3. Tutorial: Determining Moore's Law with real data in NumPy
  4. Tutorial: Saving and sharing your NumPy arrays
  5. Tutorial: NumPy deep learning on MNIST from scratch
  6. Tutorial: X-ray image processing
  7. Tutorial: NumPy deep reinforcement learning with Pong from pixels
  8. Tutorial: Masked Arrays
  9. Tutorial: Static Equilibrium
  10. Tutorial: Plotting Fractals
  11. Tutorial: NumPy natural language processing from scratch with a focus on ethics
  12. Tutorial: Analysing the impact of the lockdown on air quality in Delhi, India

Contributing

We very much welcome contributions! If you have an idea or proposal for a newtutorial, pleaseopen an issuewith an outline.

Don’t worry if English is not your first language, or if you can only come upwith a rough draft. Open source is a community effort. Do your best – we’ll helpfix issues.

Images and real-life data make text more engaging and powerful, but be sure whatyou use is appropriately licensed and available. Here again, even a rough ideafor artwork can be polished by others.

The NumPy tutorials are a curated collection ofMyST-NB notebooks. These notebooks are usedto produce static websites and can be opened as notebooks in Jupyter usingJupytext.

Note: You should useCommonMark markdowncells. Jupyter only renders CommonMark.

Why Jupyter Notebooks?

The choice of Jupyter Notebook in this repo instead of the usual format(reStructuredText, through Sphinx)used in the main NumPy documentation has two reasons:

  • Jupyter notebooks are a common format for communicating scientificinformation.
  • Jupyter notebooks can be launched inBinder, so that users can interactwith tutorials
  • rST may present a barrier for some people who might otherwise be veryinterested in contributing tutorial material.

Note

You may notice our content is in markdown format (.md files). We review andhost notebooks in theMyST-NB format. Weaccept both Jupyter notebooks (.ipynb) and MyST-NB notebooks (.md). If you wantto sync your.ipynb to your.md file follow thepairingtutorial.

Adding your own tutorials

If you have your own tutorial in the form of a Jupyter notebook (a.ipynbfile) and you'd like to add it to the repository, follow the steps below.

Create an issue

Go tohttps://github.com/numpy/numpy-tutorials/issuesand create a new issue with your proposal. Give as much detail as you can aboutwhat kind of content you would like to write (tutorial, how-to) and what youplan to cover. We will try to respond as quickly as possible with comments, ifapplicable.

Check out our suggested template

You can use ourTutorial Style Guide to makeyour content consistent with our existing tutorials.

Upload your content

    Fork this repository (if you haven't before).
    In your own fork, create a new branch for your content.
    Add your notebook to thecontent/ directory.

    Update theenvironment.yml file with the dependencies for yourtutorial (only if you add new dependencies).

    Update thisREADME.md to include your new entry.

    Update the attribution section (below) to credit the original tutorialauthor, if applicable.

    Create apull request. Make sure the "Allow edits and access to secrets by maintainers" option is selected so we can properly review your submission.

    🎉Wait for review!

For more information about GitHub and its workflow, you can seethis document.

Building the Sphinx site locally

Building the tutorials website, which is published athttps://github.com/numpy/numpy-tutorials, locally isn't necessary before makinga contribution, but may be helpful:

conda env create -f environment.ymlconda activate numpy-tutorialscd sitemake html

Translations

While we don't have the capacity to translate and maintain translated versionsof these tutorials, you are free to use and translate them to other languages.

Useful links and resources

The following links may be useful:

Note that regular documentation issues for NumPy can be found in themain NumPyrepository (see theDocumentationlabels there).

About

NumPy tutorials & educational content in notebook format

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors30


[8]ページ先頭

©2009-2025 Movatter.jp