Skip to content
Snippets Groups Projects
Commit 91b0e0d3 authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

more bug fixes

parent 68a944c5
Branches
No related tags found
No related merge requests found
[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
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment