balthou commited on
Commit
21848e9
Β·
1 Parent(s): a1ddba3

update tutorial, correct typose

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. tutorial.md +21 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import argparse
3
  from interactivity import run_interactive_pipeline
4
 
5
  if __name__ == "__main__":
6
- BACKEND_OPTIONS = ["gradio", "qt"]
7
  parser = argparse.ArgumentParser()
8
  parser.add_argument("-b", "--backend", type=str,
9
  choices=BACKEND_OPTIONS, default=BACKEND_OPTIONS[0])
 
3
  from interactivity import run_interactive_pipeline
4
 
5
  if __name__ == "__main__":
6
+ BACKEND_OPTIONS = ["gradio", "qt", "mpl"]
7
  parser = argparse.ArgumentParser()
8
  parser.add_argument("-b", "--backend", type=str,
9
  choices=BACKEND_OPTIONS, default=BACKEND_OPTIONS[0])
tutorial.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  # Advice
2
 
3
 
@@ -56,12 +66,17 @@ def gen_color(
56
  - βž– The decorated function can't be re-used somewhere else
57
 
58
  ## Pipeline visualization
 
59
  Internally, `interactive_pipe` builds an execution graph of the pipeline.
60
  | pipeline's execution graph |
61
  | :--:|
62
  | ![Pipeline](https://huggingface.co/spaces/balthou/interactive-pipe-tutorial/resolve/main/pipeline.png) |
63
 
 
64
  ## Backend choice
 
 
 
65
  |Backend | πŸš€ `Qt` | 🐒 `Gradio` |
66
  |:---|:---|:---|
67
  | Responsiveness | βž• Very fast | βž– Slower |
@@ -73,4 +88,9 @@ Internally, `interactive_pipe` builds an execution graph of the pipeline.
73
 
74
  | πŸš€ `Qt` | 🐒 `Gradio` |
75
  |:---:|:---:|
76
- | ![QT](https://huggingface.co/spaces/balthou/interactive-pipe-tutorial/resolve/main/pyqt.gif) | ![Gradio](https://huggingface.co/spaces/balthou/interactive-pipe-tutorial/resolve/main/gradio.gif) |
 
 
 
 
 
 
1
+
2
+ # ⏯ [`interactive_pipe` website](https://balthazarneveu.github.io/interactive_pipe/)
3
+
4
+ ![](https://balthazarneveu.github.io/interactive_pipe/static/interact-pipe-logo-horizontal-rgb.svg)
5
+
6
+
7
+ # Full tutorial
8
+
9
+ **Note** : The same tutorial is also available on [Google Colab](https://colab.research.google.com/github/livalgo/interactive-pipe-examples/blob/main/interactive_pipe_tutorial.ipynb) to learn about the Jupyter notebook backend.
10
+
11
  # Advice
12
 
13
 
 
66
  - βž– The decorated function can't be re-used somewhere else
67
 
68
  ## Pipeline visualization
69
+
70
  Internally, `interactive_pipe` builds an execution graph of the pipeline.
71
  | pipeline's execution graph |
72
  | :--:|
73
  | ![Pipeline](https://huggingface.co/spaces/balthou/interactive-pipe-tutorial/resolve/main/pipeline.png) |
74
 
75
+
76
  ## Backend choice
77
+
78
+
79
+
80
  |Backend | πŸš€ `Qt` | 🐒 `Gradio` |
81
  |:---|:---|:---|
82
  | Responsiveness | βž• Very fast | βž– Slower |
 
88
 
89
  | πŸš€ `Qt` | 🐒 `Gradio` |
90
  |:---:|:---:|
91
+ | ![QT](https://huggingface.co/spaces/balthou/interactive-pipe-tutorial/resolve/main/pyqt.gif) | ![Gradio](https://huggingface.co/spaces/balthou/interactive-pipe-tutorial/resolve/main/gradio.gif) |
92
+
93
+
94
+ ### Matplotlib backend
95
+
96
+ Please note that there's also a matplotlib `gui="mpl"` backend in case of environments where you really don't have access to Qt or Jupyter notebooks.