download_file#
- download_file(filename: str) str | list[str][source]#
Download a single file from the pyvista/data repository.
You can add an example file at pyvista/data.
Examples#
Download Python source code | Download Jupyter notebook
Download the 'puppy.jpg' image.
>>> from pyvista import examples
>>> path = examples.download_file('puppy.jpg')
>>> path
'/home/user/.cache/pyvista_3/puppy.jpg'
Used In#
Docstring Examples
MultiBlockPlot3DReader.add_function(1 use)SeriesReader(1 use)Theme.logo_file(1 use)
Gallery Examples