11# NumPy tutorials
22
3+ [ ![ Binder] ( http://mybinder.org/badge_logo.svg )] ( http://mybinder.org/v2/gh/numpy/numpy-tutorials/master/content )
4+
35This set of tutorials and educational materials is being developed,
4- IT IS NOT YET INTEGRATED IN THE HTML DOCS AT https://www.numpy.org/devdocs/
6+ IT IS NOT INTEGRATED IN THE HTML DOCS AT https://www.numpy.org/devdocs/
57
68The goal of this repository is to provide high-quality resources by the
7- NumPy project, both for self-learning and for teaching classes with.
9+ NumPy project, both for self-learning and for teaching classes with. If you're
10+ interested in adding your own content, check the [ Contributing] ( #contributing )
11+ section.
12+
13+ To open a live version of the content, click the ** launch Binder** button above.
14+ To download a local copy of the ` .ipynb ` files, you can either
15+ [ clone this repository] ( https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository )
16+ or navigate to any of the documents listed below and download it individually.
17+
18+ ## Content
19+
20+ 1 . [ Tutorial: Linear algebra on n-dimensional arrays] ( content/tutorial-svd.ipynb )
21+ 2 . [ Tutorial: CS231n Python Tutorial With Google Colab] ( content/cs231_tutorial.ipynb )
822
923## Contributing
1024
1125We very much welcome contributions! If you have an idea or proposal for a new
12- tutorial, please open an issue with an outline.
26+ tutorial, please [ open an issue] ( https://github.com/numpy/numpy-tutorials/issues )
27+ with an outline. After you have decided on a topic and approach, submit your
28+ notebook file via a [ pull request] ( https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests ) .
29+ For more information about GitHub and its workflow, you can see
30+ [ this document] ( https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests ) .
1331
14- ## Jupyter Notebooks
32+ Don’t worry if English is not your first language, or if you can only come up
33+ with a rough draft. Open source is a community effort. Do your best – we’ll help
34+ fix issues.
35+
36+ Images and real-life data make text more engaging and powerful, but be sure what
37+ you use is appropriately licensed and available. Here again, even a rough idea
38+ for artwork can be polished by others.
39+
40+ ### Why Jupyter Notebooks?
1541
1642The choice of Jupyter Notebook in this repo instead of the usual format
1743([ reStructuredText, through Sphinx] ( https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html ) )
@@ -22,44 +48,22 @@ used in the main NumPy documentation has two reasons:
2248 * rST may present a barrier for some people who might otherwise be very
2349 interested in contributing tutorial material.
2450
25- ## Generating the "site"
26-
27- Sphinx is configured with the appropriate extensions to execute the notebooks
28- and generated webpages from them. To accomplish this from a fresh repo:
51+ ### Adding your own tutorials
2952
30- 1 . Install the dependencies: from a terminal, run
31-
32- ```
33- pip install -r requirements.txt
34- ```
35-
36- To execute the notebooks, you'll also need to install the dependencies for
37- the tutorial(s) themselves:
38-
39- ```
40- pip install -r content/requirements.txt
41- ```
42-
43- 2 . Build and view: from your terminal, run
44-
45- ```
46- make html && <your_browser> _build/html/index.html
47- ```
48-
49- ## Adding your own tutorials
50-
51- If you have your own tutorial in the form of a Jupyter notebook and you'd like
53+ If you have your own tutorial in the form of a Jupyter notebook (a ` .ipynb `
54+ file) and you'd like
5255to try it out on the site:
5356
54571 . Add your notebook to the ` content/ ` directory
55- 2 . Update ` content/requirements.txt ` with the dependencies for your tutorial
56- 3 . Update the ` toctree ` in ` index.rst ` to include your new entry
57- 4 . Update the attribution section (below) to credit the original tutorial
58- author.
58+ 2 . Update the ` environment.yml ` file with the dependencies for your tutorial
59+ (only if you add new dependencies)
60+ 3 . Update this ` README.md ` to include your new entry
61+ 4 . Update the attribution section (below) to credit the original tutorial
62+ author.
5963
60- ## Attribution
64+ ### Attribution
6165
62- - The [ cs231n] [ cs231 ] tutorial is by [ @jcjohnson ] [ jj ] . The full tutorial in
66+ - The cs231n tutorial is by [ @jcjohnson ] [ jj ] . The full tutorial in
6367 its original form is linked via [ numpy.org] [ learn ] .
6468 - The SVD tutorial is by [ @melissawm ] [ mwm ] . The full tutorial is available
6569 via the [ tutorials page] [ np_tutorials ] of the official NumPy documentation.
@@ -68,14 +72,17 @@ to try it out on the site:
6872[ mwm ] : https://github.com/melissawm
6973[ np_tutorials ] : https://numpy.org/devdocs/user/tutorials_index.html
7074
71- ## Useful links
75+ ## Useful links and resources
7276
73- The following may be useful:
77+ The following links may be useful:
7478
75- - [ NumPy documentation team meetings] ( https://hackmd.io/oB_boakvRqKR-_2jRV-Qjg?both )
79+ - [ NumPy Code of Conduct] ( https://numpy.org/doc/stable/dev/conduct/code_of_conduct.html )
80+ - [ Main NumPy documentation] ( https://numpy.org/doc/stable/ )
81+ - [ NumPy documentation team meeting notes] ( https://hackmd.io/oB_boakvRqKR-_2jRV-Qjg?both )
7682- [ NEP 44 - Restructuring the NumPy documentation] ( https://numpy.org/neps/nep-0044-restructuring-numpy-docs.html )
7783- [ Blog post - Documentation as a way to build Community] ( https://labs.quansight.org/blog/2020/03/documentation-as-a-way-to-build-community/ )
78- - Note that regular documentation issues for NumPy can be found in the
79- [ main NumPy repository] ( https://github.com/numpy/numpy/issues ) (see the
80- ` Documentation ` labels (2x) there)
84+
85+ Note that regular documentation issues for NumPy can be found in the [ main NumPy
86+ repository] ( https://github.com/numpy/numpy/issues ) (see the ` Documentation `
87+ labels there).
8188
0 commit comments