FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tutorial/tutorialextension.py at master · ray-project/tutorial · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
ray-project
/
tutorial
Public archive
Notifications
You must be signed in to change notification settings
Fork
213
Star
791
Code
Issues
24
Pull requests
9
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tutorial
/
tutorialextension.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (13 loc) · 719 Bytes
Breadcrumbs
tutorial
/
tutorialextension.py
Copy path
File metadata and controls
15 lines (13 loc) · 719 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
os
from
subprocess
import
Popen
def
load_jupyter_server_extension
(
nbapp
):
cwd
=
os
.
getcwd
()
# The following will replace "localhost" with the right binder url
Popen
(
"python utilities/patch.py examples/news_recommendation_serving.ipynb 9000"
,
shell
=
True
)
Popen
(
"python utilities/patch.py exercises/exercise01-Introduction.ipynb 8000"
,
shell
=
True
)
Popen
(
"python utilities/patch.py exercises/exercise02-Task_Dependencies.ipynb 8000"
,
shell
=
True
)
os
.
chdir
(
os
.
path
.
join
(
cwd
,
"qreader"
,
"dist"
))
Popen
(
"python ../../utilities/patch.py static/js/app.*.js 5000"
,
shell
=
True
)
Popen
([
"python"
,
"-m"
,
"http.server"
,
"9000"
])
os
.
chdir
(
"/tmp"
)
Popen
([
"python"
,
"-m"
,
"http.server"
])
Back
|
FazBrowse Home
|
New Git URL