Skip to content

Fixing order import #1386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/ansys/mapdl/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@
close_all_local_instances,
find_ansys,
get_ansys_path,
launch_mapdl,
save_ansys_path,
)

# override default launcher when on pyansys.com
if "ANSJUPHUB_VER" in os.environ:
from ansys.mapdl.core.jupyter import launch_mapdl_on_cluster as launch_mapdl
else:
from ansys.mapdl.core.launcher import launch_mapdl

from ansys.mapdl.core.mapdl_grpc import MapdlGrpc as Mapdl
from ansys.mapdl.core.misc import Information, Report, _check_has_ansys
from ansys.mapdl.core.pool import LocalMapdlPool
Expand All @@ -58,10 +64,4 @@
except: # pragma: no cover
pass


# override default launcher when on pyansys.com
if "ANSJUPHUB_VER" in os.environ:
from ansys.mapdl.core.jupyter import launch_mapdl_on_cluster as launch_mapdl


BUILDING_GALLERY = False
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def launch_mapdl_on_cluster(
may segfault.
loglevel : str, optional
Sets which messages are printed to the console. Default
``'INFO'`` logs out all MAPDL messages, ``'WARNING``` prints only
``'INFO'`` logs out all MAPDL messages, ``'WARNING'`` prints only
messages containing MAPDL warnings, and ``'ERROR'`` prints only
error messages.
additional_switches : str, optional
Expand Down