Skip to content

Commit 2378e0c

Browse files
committed
[update] update readme for ssh port forwarding
1 parent 439503b commit 2378e0c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

example/isaacgym/train_isaacgym_remote_server.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
"from pathlib import Path\n",
1313
"from ctypes import cdll\n",
1414
"import sys\n",
15+
"\n",
1516
"is_conda = 'CONDA_PREFIX' in os.environ or 'CONDA_DEFAULT_ENV' in os.environ\n",
1617
"if is_conda:\n",
1718
" version_info = sys.version_info\n",
1819
" if version_info.major == 3 and version_info.minor >= 8:\n",
19-
" conda_lib_path = Path(sys.executable).parent.parent / f\"lib/libpython{version_info.major}.{version_info.minor}.so.1.0\"\n",
20+
" conda_lib_path = Path(\n",
21+
" sys.executable).parent.parent / f\"lib/libpython{version_info.major}.{version_info.minor}.so.1.0\"\n",
2022
" else:\n",
21-
" conda_lib_path = Path(sys.executable).parent.parent / f\"lib/libpython{version_info.major}.{version_info.minor}m.so.1.0\"\n",
23+
" conda_lib_path = Path(\n",
24+
" sys.executable).parent.parent / f\"lib/libpython{version_info.major}.{version_info.minor}m.so.1.0\"\n",
2225
" python_lib = cdll.LoadLibrary(str(conda_lib_path))\n",
2326
" print(f\"Load Python lib {conda_lib_path}\")\n"
2427
]
@@ -83,7 +86,8 @@
8386
"vec_task.VecTask.create_sim = wrapped_create_sim\n",
8487
"\n",
8588
"# Create web visualizer\n",
86-
"web_visualizer = create_isaac_visualizer(port=6000, host=\"localhost\", keep_default_viewer=False, max_env=16, scene_offset=np.array([40.0, 40.0]))\n",
89+
"web_visualizer = create_isaac_visualizer(port=6000, host=\"localhost\", keep_default_viewer=False, max_env=16,\n",
90+
" scene_offset=np.array([40.0, 40.0]))\n",
8791
"\n",
8892
"\n",
8993
"################################################################################################\n",
@@ -292,6 +296,8 @@
292296
"outputs": [],
293297
"source": [
294298
"# Modify the IP if the jupyter server is not localhost\n",
299+
"# If your remote server has a public ip, the machine ip should be that one\n",
300+
"# If you are using ssh port forwarding like: ssh YOUR_SERVER -L 7000:localhost:7000 to forward port 7000 from your server to local machine, it should still be your localhost\n",
295301
"machine_ip = \"127.0.0.1\"\n",
296302
"web_visualizer.jupyter_cell(url=f\"http://{machine_ip}:7000/static/\", height=400)"
297303
]

0 commit comments

Comments
 (0)