Spaces:
Sleeping
Sleeping
update tutorial, correct typose
Browse files- app.py +1 -1
- 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 |
|  |
|
| 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 |
-
|  |  |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# β― [`interactive_pipe` website](https://balthazarneveu.github.io/interactive_pipe/)
|
| 3 |
+
|
| 4 |
+

|
| 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 |
|  |
|
| 74 |
|
| 75 |
+
|
| 76 |
## Backend choice
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
|
| 80 |
|Backend | π `Qt` | π’ `Gradio` |
|
| 81 |
|:---|:---|:---|
|
| 82 |
| Responsiveness | β Very fast | β Slower |
|
|
|
|
| 88 |
|
| 89 |
| π `Qt` | π’ `Gradio` |
|
| 90 |
|:---:|:---:|
|
| 91 |
+
|  |  |
|
| 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.
|