Skip to content

Commit 94a31eb

Browse files
committed
fix jupyter resource args (#876)
1 parent 6ed0b92 commit 94a31eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ansys/mapdl/core/jupyter.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def launch_mapdl_on_cluster(
3636
verbose=False,
3737
start_timeout=600,
3838
tag="latest",
39-
**kwargs,
4039
):
4140
"""Start MAPDL on the ANSYS jupyter cluster in gRPC mode.
4241
@@ -123,7 +122,13 @@ def launch_mapdl_on_cluster(
123122

124123
additional_switches += f"-m -{memory} -np {nproc}"
125124
args = additional_switches.split()
126-
ip, name = manager.spawn_mapdl(version=tag, args=args, verbose=verbose)
125+
ip, name = manager.spawn_mapdl(
126+
version=tag,
127+
args=args,
128+
verbose=verbose,
129+
cpu=1000*nproc,
130+
memory=memory,
131+
)
127132

128133
# connect to the pod instance
129134
from ansys.mapdl.core import Mapdl

0 commit comments

Comments
 (0)