File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 8989
9090
9191# -- copybutton config -------------------------------------------------------
92- copybutton_prompt_text = r'>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: '
92+ copybutton_prompt_text = r'>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: |> '
9393copybutton_prompt_is_regexp = True
9494
9595
Original file line number Diff line number Diff line change @@ -67,6 +67,40 @@ Here is the resulting animation:
6767
6868----
6969
70+ The CLI generates animations for the Cartesian product of the datasets and shapes
71+ provided. For example, if you wanted to morph both the music and soccer datasets
72+ into both the heart and diamond shapes (i.e., four animations), you could run
73+ the command below:
74+
75+ .. code :: console
76+
77+ $ data-morph --start-shape music soccer --target-shape heart diamond
78+
79+ .. tip ::
80+
81+ When doing generating multiple animations, it is recommended that you also specify
82+ the number of jobs you want to run in parallel (limited by the number of CPU cores
83+ on your machine). If you pass ``0 ``, Data Morph will run as many as possible:
84+
85+ .. code :: console
86+
87+ $ data-morph --start-shape music soccer --target-shape heart diamond --workers 0
88+
89+ If you have the GNU ``parallel `` command on your machine, you can use it to run
90+ a slightly faster parallelized Data Morph (since it incurs less Python overhead),
91+ in which case you don't need to provide the worker count:
92+
93+ .. code :: console
94+
95+ $ parallel --progress -j0 \
96+ > data-morph --start-shape {1} --target-shape {2} \
97+ > ::: music soccer ::: heart diamond
98+
99+ Check out the `GNU parallel documentation <https://www.gnu.org/software/parallel/sphinx.html >`_
100+ for more options.
101+
102+ ----
103+
70104See all available CLI options by passing in ``--help `` or consulting the :doc: `cli `:
71105
72106.. code :: console
You can’t perform that action at this time.
0 commit comments