Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Remote Spawn Profile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RWTHjupyter
Remote Spawn Profile
Commits
91b0e0d3
Commit
91b0e0d3
authored
4 years ago
by
Steffen Vogel
Browse files
Options
Downloads
Patches
Plain Diff
more bug fixes
parent
68a944c5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/setup.cfg
+1
-1
1 addition, 1 deletion
python/setup.cfg
python/src/jupyter_remote_spawn/main.py
+4
-4
4 additions, 4 deletions
python/src/jupyter_remote_spawn/main.py
with
5 additions
and
5 deletions
python/setup.cfg
+
1
−
1
View file @
91b0e0d3
[metadata]
name
=
rwth-jupyter
version
=
0.0.
4
version
=
0.0.
6
author
=
Steffen Vogel
author_email
=
post@steffenvogel.de
description
=
Start a RWTHjupyter instance on your machine
...
...
This diff is collapsed.
Click to expand it.
python/src/jupyter_remote_spawn/main.py
+
4
−
4
View file @
91b0e0d3
...
...
@@ -91,6 +91,9 @@ def main():
chisel_fingerprint
=
j
.
get
(
'
chisel
'
).
get
(
'
fingerprint
'
)
jupyter_token
=
j
.
get
(
'
jupyter
'
).
get
(
'
token
'
)
# Start jupyterhub-singleuser
jupyter
=
JupyterSingleuser
(
hub
.
username
,
jupyter_token
,
jupyter_notebook_port
,
jupyter_hub_port
)
# Establish chisel tunnel
chisel
=
Chisel
(
cfg
.
jupyterhub_url
+
f
'
/user/
{
hub
.
username
}
/
'
,
[
f
'
{
sftp_port
}
:localhost:7777
'
,
...
...
@@ -106,9 +109,6 @@ def main():
if
not
chisel
.
connected
.
wait
(
timeout
=
10
):
raise
Exception
(
'
Failed to connect to chisel server
'
)
# Start jupyterhub-singleuser
jupyter
=
JupyterSingleuser
(
hub
.
username
,
jupyter_token
,
jupyter_notebook_port
,
jupyter_hub_port
)
# Mount RWTHjupyter home directory
if
cfg
.
mount
:
if
cfg
.
rwth
:
...
...
@@ -119,7 +119,7 @@ def main():
cfg
.
mount_point
=
f
'
/tmp/
'
+
getpass
.
getuser
()
+
'
/jupyter
'
if
not
os
.
path
.
islink
(
orig_mount_point
):
os
.
symlink
(
orig_
mount_point
,
cfg
.
mount_point
)
os
.
symlink
(
cfg
.
mount_point
,
orig_
mount_point
)
sshfs
=
Sshfs
(
cfg
.
mount_point
,
sftp_port
)
sshfs
.
mount
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment