This GitHub repository contains the source code for the Python Graph Gallery, a website showcasing hundreds of charts made with Python.
Website | About | Contribute
All kinds of contributions are welcome: from correcting a typo to adding a new blog post!
Set Up Development EnvironmentTo install the website locally, follow these steps:
npm install
to install dependencies.npm run develop
to build and preview the site locally. It may take 1–2 minutes. Then visit http://localhost:8000
in your browser.To improve a blog post such as https://python-graph-gallery.com/20-basic-histogram-seaborn/
:
20-basic-histogram-seaborn.ipynb
file in your code editor.To create a new blog post, duplicate an existing one and edit it as follows:
.ipynb
file in src/notebooks/
.602-combine-boxplot-and-violintplot-using-seaborn.ipynb
slug
metadata.
Open With > Text Editor
option (not Jupyter Notebook).slug
should match the filename (without the extension), e.g., 602-combine-boxplot-and-violintplot-using-seaborn
.npm run develop
to rebuild the site.http://localhost:8000/602-combine-boxplot-and-violintplot-using-seaborn
At the end of the notebook (opened as a text file), update these metadata fields:
title
: Appears as the main title.description
: Short intro text under the title (HTML allowed).family
: One of: evolution, ranking, distribution, general, correlation, partOfAWhole, flowchartType
: Must match an ID from this fileslug
: Already defined above.keywords
: For the HTML header.seoDescription
: Plain-text description for meta tags. Think SEO!To link your post in the gallery:
Create a Screenshot
ctrl + cmd + 4
).The-Python-Graph-Gallery/static/graph/
.Format Image with ImageMagick
img
folder../script_reformat_img.sh my-img-name.png
602-combine-boxplot-and-violintplot-using-seaborn.png
.-1.png
, -2.png
, etc.Update Section File
violin-plot.js
in src/pages/
.<ChartImageContainer imgName="602-combine-boxplot-and-violintplot-using-seaborn" caption="Combine boxplot and violinplot with seaborn" linkTo="/602-combine-boxplot-and-violintplot-using-seaborn" />
Before pushing, review the New Post Checklist.
Once everything is ready, commit, push, and open a pull request on Github.
Congrats! 🎉
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4