Untitled
unknown
python
a year ago
2.6 kB
3
Indexable
Never
# %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-08-04T13:45:35.903398Z","iopub.execute_input":"2023-08-04T13:45:35.904030Z","iopub.status.idle":"2023-08-04T13:45:36.988440Z","shell.execute_reply.started":"2023-08-04T13:45:35.903989Z","shell.execute_reply":"2023-08-04T13:45:36.986965Z"}} !nvidia-smi # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:46:31.821371Z","iopub.execute_input":"2023-08-04T13:46:31.821826Z","iopub.status.idle":"2023-08-04T13:46:39.398606Z","shell.execute_reply.started":"2023-08-04T13:46:31.821772Z","shell.execute_reply":"2023-08-04T13:46:39.397217Z"}} !curl -fsSL https://code-server.dev/install.sh | sh # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:47:01.082493Z","iopub.execute_input":"2023-08-04T13:47:01.082896Z","iopub.status.idle":"2023-08-04T13:47:11.871630Z","shell.execute_reply.started":"2023-08-04T13:47:01.082861Z","shell.execute_reply":"2023-08-04T13:47:11.870407Z"}} !code-server --port 80 # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:47:35.175493Z","iopub.execute_input":"2023-08-04T13:47:35.175905Z","iopub.status.idle":"2023-08-04T13:47:36.175759Z","shell.execute_reply.started":"2023-08-04T13:47:35.175868Z","shell.execute_reply":"2023-08-04T13:47:36.174565Z"}} !cat ~/.config/code-server/config.yaml # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:47:55.641715Z","iopub.execute_input":"2023-08-04T13:47:55.642769Z","iopub.status.idle":"2023-08-04T13:48:10.750479Z","shell.execute_reply.started":"2023-08-04T13:47:55.642729Z","shell.execute_reply":"2023-08-04T13:48:10.749164Z"}} !pip install pyngrok # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:50:49.148141Z","iopub.execute_input":"2023-08-04T13:50:49.148505Z","iopub.status.idle":"2023-08-04T13:50:49.936159Z","shell.execute_reply.started":"2023-08-04T13:50:49.148475Z","shell.execute_reply":"2023-08-04T13:50:49.935057Z"}} from pyngrok import conf, ngrok conf.get_default().auth_token = "2DcgkbacxZ2rHtgRwAwo4u72ToW_6tGArrGFJUFrwJ7cnAZu2" ssh_tunnel = ngrok.connect(80, "http") # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:51:05.943035Z","iopub.execute_input":"2023-08-04T13:51:05.944089Z","iopub.status.idle":"2023-08-04T13:51:05.957439Z","shell.execute_reply.started":"2023-08-04T13:51:05.944049Z","shell.execute_reply":"2023-08-04T13:51:05.956189Z"}} tunnels = ngrok.get_tunnels() tunnels # %% [code] {"execution":{"iopub.status.busy":"2023-08-04T13:51:26.893520Z","iopub.execute_input":"2023-08-04T13:51:26.893962Z"}} !code-server --port 80 # %% [code]