You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/python/README.md
+52-22Lines changed: 52 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -29,26 +29,51 @@ Our python tutorials are written in [ipython notebooks](http://ipython.org/noteb
29
29
2.`cd` into the folder you created and run `ipython notebook`
30
30
- From the <b>New</b> dropdown create a new notebook and title it based on the type of chart you're adding to the documentation.
31
31
3. Base your tutorial structure off of one of our exsisting tutorials (i.e. `documentation/_posts/python/table/table.ipynb`)
32
-
- Include the following as the last cell in your .ipynb (*replacing `your-tutorial-chart` with the type of chart you're creating in the tutorial.)
33
-
* this will convert your .ipynb to a .html file:
34
-
```
35
-
from IPython.display import display, HTML
32
+
- <b>Now we have an awesome navigation bar on the left side of our tutorial pages.</b> The navigation bar displayed the titles you add to your notebook. Please title each example clearly and order then from basic -> advanced.
33
+
4. The last content cell of your notebook should be a markdown cell with:
34
+
35
+
```
36
+
## Reference
37
+
See https://plot.ly/python/reference/##heatmap for more information and chart attribute options!
38
+
```
39
+
40
+
where `https://plot.ly/python/reference/##heatmap` is replaced with the pertinent link(s) to our python [reference
41
+
page](https://plot.ly/python/reference/)!
42
+
43
+
and/or provide a help call:
44
+
`help(FF.create_table)` (*This applies to documentation on FigureFactory functions)
45
+
5. Finally, convert your .ipynb to a .html file by adding the following code snippet as the last cell of your notebook.
46
+
- Replace `your-tutorial-chart` with the type of chart you're creating in the tutorial.)
47
+
- Please be dilligent about adding this information completely and in the order as it appears here (this is really helpful if future edits are necessary :D )
page_type='example_index', has_thumbnail='true', display_as='chart_type', order=32 *see below for more information on the order field)
48
-
```
49
-
*`order` defines the order in which the tutorials appear on plot.ly/python. Please take a look at https://plot.ly/python/ and order your tutorial next to similar chart types.
- `order` defines the order in which the tutorials appear on plot.ly/python. Please take a look at https://plot.ly/python/ anorder your tutorial next to similar chart types. <b>Note</b> `order` can be a float.
50
75
51
-
4. Add Thumbnail Images
76
+
6. Add Thumbnail Images
52
77
- Thumbnail images should named `your-tutorial-chart.jpg` and be *EXACTLY* 160px X 160px
53
78
- Thumbnail images should be clear and interesting. You do not need to capture the ENTIRE chart, but rather focus on the most interesting part of the chart.
54
79
- Use images.plot.ly for adding new images.
@@ -58,17 +83,22 @@ Our python tutorials are written in [ipython notebooks](http://ipython.org/noteb
58
83
- Now from <b>All Buckets /plotly-tutorials/plotly-documentation/thumbnail</b> select the <b>Actions</b> dropdown and <b>upload</b> your .jpg file
59
84
60
85
##### In the teminal in `documentation`
61
-
5. Commit and Push your tutorial
86
+
7. Commit and Push your tutorial
62
87
- `git add` your .ipynb and .html files
63
88
- `git commit -m "include a message about the tutorial you're adding"`
64
89
- `git push origin source`
65
90
66
-
5. To proof your work follow these steps: https://github.com/plotly/documentation/blob/source/Contributing.md#rendering-the-pages-locally
67
-
68
-
6. Deploy with `rake deploy`
91
+
8. To proof your work follow these steps: https://github.com/plotly/documentation/blob/source/Contributing.md#rendering-the-pages-locally
92
+
9. Deploy with `rake deploy`
69
93
70
94
##### At https://plot.ly/python
71
-
7. Check your Tutorial!!!! This is a <b>very important</b> step.
95
+
10. Check your Tutorial!!!! This is a <b>very important</b> step.
72
96
<b>PLEASE</b> visit https://plot.ly/python/your-tutorial and make sure everything looks correct :)
73
97
98
+
- Some common problems that you should check for:
99
+
- Make sure all plots appear! (*you may want to sign out of your Plotly account to ensure you didn't accidentally embed private plots)
100
+
- There are no empty notebook cells
101
+
- The thumbnail image appears on: https://plot.ly/python/
0 commit comments