aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/matplotlib-inline/README.md
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/python/matplotlib-inline/README.md
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/python/matplotlib-inline/README.md')
-rw-r--r--contrib/python/matplotlib-inline/README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/python/matplotlib-inline/README.md b/contrib/python/matplotlib-inline/README.md
new file mode 100644
index 0000000000..9ef91180b1
--- /dev/null
+++ b/contrib/python/matplotlib-inline/README.md
@@ -0,0 +1,30 @@
+# Matplotlib Inline Back-end for IPython and Jupyter
+
+## Installation
+
+With conda:
+
+```bash
+conda install -c conda-forge notebook matplotlib
+```
+
+With pip:
+
+```bash
+pip install notebook matplotlib
+```
+
+## Usage
+
+This package is included in IPython and can be used in a Jupyter Notebook:
+
+```python
+%matplotlib inline
+
+import matplotlib.pyplot as plt
+import numpy as np
+
+x = np.linspace(0, 3*np.pi, 500)
+plt.plot(x, np.sin(x**2))
+plt.title('A simple chirp');
+```