Skip to content

Commit 77d8d27

Browse files
fix: Pre-commit
1 parent 12de712 commit 77d8d27

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

doc/source/user_guide/migration.rst

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here is an example of how to do this:
2121
- PyVista code:
2222

2323
.. code-block:: python
24-
24+
2525
import pyvista as pv
2626
2727
# Create a pyvista mesh
@@ -93,7 +93,7 @@ With this, you can use the Ansys Tools Visualization Interface plotter to visual
9393
Customizing the PyVista backend
9494
-------------------------------
9595

96-
You can customize the backend of the Ansys Tools Visualization Interface plotter to enable or disable certain functionalities. For example,
96+
You can customize the backend of the Ansys Tools Visualization Interface plotter to enable or disable certain functionalities. For example,
9797
if you want to enable picking, you can do it as follows:
9898

9999
.. code-block:: python
@@ -112,7 +112,7 @@ if you want to enable picking, you can do it as follows:
112112
# Show the plotter
113113
pl.show()
114114
115-
If you want to go further and customize the backend even more, you can create your own backend by inheriting from the ``PyVistaBackendInterface`` class
115+
If you want to go further and customize the backend even more, you can create your own backend by inheriting from the ``PyVistaBackendInterface`` class
116116
and implementing the required methods. You can find more information about this in the backend documentation:
117117

118118
.. code-block:: python
@@ -134,6 +134,7 @@ and implementing the required methods. You can find more information about this
134134
"""
135135
pass
136136
137+
137138
@abstractmethod
138139
def plot(self, plottable_object: Any, name_filter: str = None, **plotting_options):
139140
"""Plot a single object to the plotter.
@@ -158,12 +159,12 @@ although this may break existing functionality. You can find more information ab
158159

159160
Customize the picker or hover behavior
160161
--------------------------------------
161-
You can customize the picker of the Ansys Tools Visualization Interface plotter to decide what happens when an object is picked or hovered.
162+
You can customize the picker of the Ansys Tools Visualization Interface plotter to decide what happens when an object is picked or hovered.
162163
For example, if you want to print the name of the picked object, you can do it as described in the custom picker example.
163164

164165
Using PyVista Qt backend
165166
------------------------
166-
You can use the PyVista Qt backend with the Ansys Tools Visualization Interface plotter. To do this, you need to set the PyVista backend to Qt
167+
You can use the PyVista Qt backend with the Ansys Tools Visualization Interface plotter. To do this, you need to set the PyVista backend to Qt
167168
before creating the plotter. Here is an example of how to do this:
168169

169170
.. code-block:: python
@@ -175,7 +176,7 @@ before creating the plotter. Here is an example of how to do this:
175176
pl.backend.enable_widgets()
176177
pv_backend.scene.show()
177178
178-
With this, you can integrate the plotter into a PyQt or PySide application by disabling ``show_qt`` parameter.
179+
With this, you can integrate the plotter into a PyQt or PySide application by disabling ``show_qt`` parameter.
179180
You can find more information about this in the `PyVista documentation <https://qtdocs.pyvista.org/>`_.
180181

181182

@@ -196,21 +197,16 @@ This guide is intended to help users transition from PyVista documentation confi
196197
.. code-block:: python
197198
198199
from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
200+
199201
sphinx_gallery_conf = {
200-
...
201202
"image_scrapers": (DynamicScraper()),
202-
...
203203
}
204204
205205
3. Add PyVista viewer directive to extensions:
206206

207207
.. code-block:: python
208208
209-
extensions = [
210-
...
211-
"pyvista.ext.viewer_directive",
212-
...
213-
]
209+
extensions = ["pyvista.ext.viewer_directive"]
214210
215211
4. Make sure you are executing the notebook cells:
216212

0 commit comments

Comments
 (0)