1- import os
2- import sys
3- from glob import glob
41from datetime import datetime
2+ from glob import glob
3+ import os
54
5+ from ansys_sphinx_theme import (
6+ ansys_favicon ,
7+ get_version_match ,
8+ pyansys_logo_dark_mode ,
9+ pyansys_logo_light_mode ,
10+ )
611import numpy as np
712import pyvista
13+
814from ansys .dpf .core import __version__ , server , server_factory
915from ansys .dpf .core .examples import get_example_required_minimum_dpf_version
10- from ansys_sphinx_theme import ansys_favicon , get_version_match , pyansys_logo_light_mode , pyansys_logo_dark_mode
1116
1217# Manage errors
1318pyvista .set_error_output_file ("errors.txt" )
161166
162167
163168def reset_servers (gallery_conf , fname , when ):
169+ import gc
170+
164171 import psutil
172+
165173 from ansys .dpf .core import server
166- import gc
167174
168175 gc .collect ()
169176 server .shutdown_all_session_servers ()
@@ -174,7 +181,7 @@ def reset_servers(gallery_conf, fname, when):
174181 try :
175182 # check whether the process name matches
176183 if proc_name in proc .name ():
177- # proc.kill()
184+ proc .kill ()
178185 nb_procs += 1
179186 except psutil .NoSuchProcess :
180187 pass
@@ -259,7 +266,7 @@ def reset_servers(gallery_conf, fname, when):
259266
260267# Configuration for Sphinx autoapi
261268suppress_warnings = [
262- "autoapi.python_import_resolution" , # Todo : remove suppression of this warning in the future
269+ "autoapi.python_import_resolution" , # TODO : remove suppression of this warning in the future #1967
263270 "design.grid" ,
264271 "config.cache" ,
265272 "design.fa-build" ,
@@ -366,4 +373,4 @@ def reset_servers(gallery_conf, fname, when):
366373# epub_uid = ''
367374
368375# A list of files that should not be packed into the epub file.
369- epub_exclude_files = ["search.html" ]
376+ epub_exclude_files = ["search.html" ]
0 commit comments