@@ -23,149 +23,14 @@ or use the download icon in the upper-right corner of each tutorial.
23
23
24
24
``` {toctree}
25
25
---
26
- maxdepth: 1
26
+ maxdepth: 2
27
27
---
28
28
29
- content/tutorial-style-guide
30
- content/tutorial-svd
31
- content/mooreslaw-tutorial
32
- content/save-load-arrays
33
- content/tutorial-deep-learning-on-mnist
34
- content/tutorial-deep-reinforcement-learning-with-pong-from-pixels
35
- content/tutorial-x-ray-image-processing
36
- content/tutorial-ma
37
- content/tutorial-static_equilibrium
29
+ features
30
+ applications
31
+ contributing
38
32
```
39
33
40
- ## Contributing
41
-
42
- We very much welcome contributions! If you have an idea or proposal for a new
43
- tutorial, please [ open an issue] ( https://github.com/numpy/numpy-tutorials/issues )
44
- with an outline.
45
-
46
- Don’t worry if English is not your first language, or if you can only come up
47
- with a rough draft. Open source is a community effort. Do your best – we’ll help
48
- fix issues.
49
-
50
- Images and real-life data make text more engaging and powerful, but be sure what
51
- you use is appropriately licensed and available. Here again, even a rough idea
52
- for artwork can be polished by others.
53
-
54
- The NumPy tutorials are a curated collection of
55
- [ MyST-NB] ( https://myst-nb.readthedocs.io/ ) notebooks. These notebooks are used
56
- to produce static websites and can be opened as notebooks in Jupyter using
57
- [ Jupytext] ( https://jupytext.readthedocs.io ) .
58
-
59
- > __ Note:__ You should use [ CommonMark] ( https://commonmark.org ) markdown
60
- > cells. Jupyter only renders CommonMark.
61
-
62
- ### Why Jupyter Notebooks?
63
-
64
- The choice of Jupyter Notebook in this repo instead of the usual format
65
- ([ reStructuredText] [ rst ] )
66
- used in the main NumPy documentation has two reasons:
67
-
68
-
69
- * Jupyter notebooks are a common format for communicating scientific
70
- information.
71
- * Jupyter notebooks can be launched in [ Binder] ( https://www.mybinder.org ) , so that users can interact
72
- with tutorials
73
- * rST may present a barrier for some people who might otherwise be very
74
- interested in contributing tutorial material.
75
-
76
- [ rst ] : https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html
77
-
78
- #### Note
79
-
80
- You may notice our content is in markdown format (` .md ` files). We review and
81
- host notebooks in the [ MyST-NB] ( https://myst-nb.readthedocs.io/ ) format. We
82
- accept both Jupyter notebooks (` .ipynb ` ) and MyST-NB notebooks (` .md ` ).
83
- If you want to sync your ` .ipynb ` to your ` .md ` file follow the [ pairing
84
- tutorial] ( content/pairing.md ) .
85
-
86
- ``` {toctree}
87
- :hidden:
88
-
89
- content/pairing
90
- ```
91
-
92
- ### Adding your own tutorials
93
-
94
- If you have your own tutorial in the form of a Jupyter notebook (an ` .ipynb `
95
- file) and you'd like to try add it out to the repository, follow the steps below.
96
-
97
- #### Create an issue
98
-
99
- Go to < https://github.com/numpy/numpy-tutorials/issues > and create a new issue
100
- with your proposal.
101
- Give as much detail as you can about what kind of content you would like to
102
- write (tutorial, how-to) and what you plan to cover.
103
- We will try to respond as quickly as possible with comments, if applicable.
104
-
105
- #### Check out our suggested template
106
-
107
- You can use this template to make your content consistent with our existing
108
- tutorials:
109
-
110
- ``` {toctree}
111
- ---
112
- maxdepth: 1
113
- ---
114
- content/tutorial-style-guide
115
- ```
116
-
117
- #### Upload your content
118
-
119
- Remember to clear all outputs on your notebook before uploading it.
120
-
121
- <ul >
122
- <details >
123
- <summary>
124
- <b>Fork this repository</b> (if you haven't before).
125
- </summary>
126
- <img src="_static/01-fork.gif" width=80% height=80%>
127
- </details >
128
-
129
- <details >
130
- <summary>
131
- <b>In your own fork, create a new branch for your content.</b>
132
- </summary>
133
- <img src="_static/02-create_new_branch.gif" width=80% height=80%>
134
- </details >
135
-
136
- <details >
137
- <summary>
138
- <b>Add your notebook to the <code>content/</code> directory.</b>
139
- </summary>
140
- <img src="_static/03-upload.gif" width=80% height=80%>
141
- </details >
142
-
143
- <b >Update the <code >environment.yml</code > file with the dependencies for your tutorial</b >
144
- (only if you add new dependencies).
145
-
146
- <details >
147
- <summary>
148
- <b>Update this <code>README.md</code> to include your new entry.</b>
149
- </summary>
150
- <img src="_static/04-add_to_readme.gif" width=80% height=80%>
151
- </details >
152
-
153
- <details >
154
- <summary>
155
- <b>Create a <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests">pull request.</a> Make sure the "Allow edits and access to secrets by maintainers" option is selected so we can properly review your submission.</b>
156
- </summary>
157
- <img src="_static/05-create_PR.gif" width=80% height=80%>
158
- </details >
159
-
160
- 🎉 <b >Wait for review!</b >
161
- </ul >
162
-
163
- For more information about GitHub and its workflow, you can see
164
- [ this document] [ collab ] .
165
-
166
- [ collab ] : https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests
167
-
168
-
169
34
## Useful links and resources
170
35
171
36
The following links may be useful:
0 commit comments