Ejemplo n.º 1
0
def test_get_sg_image_scraper():
    scraper = pyvista._get_sg_image_scraper()
    assert isinstance(scraper, pyvista.Scraper)
    assert callable(scraper)
Ejemplo n.º 2
0
    # Patter to search for example files
    "filename_pattern":
    r"\.py",
    # Remove the "Download all examples" button from the top level gallery
    "download_all_examples":
    False,
    # Sort gallery example by file name instead of number of lines (default)
    "within_subsection_order":
    FileNameSortKey,
    # directory where function granular galleries are stored
    "backreferences_dir":
    False,
    # Modules for which function level galleries are created.  In
    "doc_module":
    "pyvista",
    "image_scrapers": (pyvista._get_sg_image_scraper(), 'matplotlib'),
    "thumbnail_size": (350, 350),
    'first_notebook_cell': ("%matplotlib inline\n"
                            "from pyvista import set_plot_theme\n"
                            "set_plot_theme('document')")
}

# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_context = {
    # Enable the "Edit in GitHub link within the header of each page.