flagflag  
2: 2020-08-21 (Fri) 17:45:56 iseki source 3: 2020-08-23 (Sun) 02:49:18 iseki source
Line 115: Line 115:
 #      Use JupyterHub.bind_url  #      Use JupyterHub.bind_url
 #c.JupyterHub.base_url = '/'  #c.JupyterHub.base_url = '/'
 +
 + # My IP Address
 + my_ip_addr = '192.168.27.40'
 ## The public facing URL of the whole JupyterHub application.  ## The public facing URL of the whole JupyterHub application.
 #  #
 #  This is the address on which the proxy will bind. Sets protocol, ip, base_url  #  This is the address on which the proxy will bind. Sets protocol, ip, base_url
- c.JupyterHub.bind_url = 'http://192.168.27.20:8000'+ c.JupyterHub.bind_url = 'http://'+my_ip_addr+':8000'
 ## Whether to shutdown the proxy when the Hub shuts down.  ## Whether to shutdown the proxy when the Hub shuts down.
Line 255: Line 258:
 #  #
 #  .. versionadded:: 0.9  #  .. versionadded:: 0.9
- c.JupyterHub.hub_bind_url = 'http://192.168.27.20:8081'+ c.JupyterHub.hub_bind_url = 'http://'+my_ip_addr+':8081'
 ## The ip or hostname for proxies and spawners to use for connecting to the Hub.  ## The ip or hostname for proxies and spawners to use for connecting to the Hub.
Line 270: Line 273:
 #  #
 #  .. versionadded:: 0.8  #  .. versionadded:: 0.8
- c.JupyterHub.hub_connect_ip = '192.168.27.20'+ c.JupyterHub.hub_connect_ip = my_ip_addr
 ## DEPRECATED  ## DEPRECATED
Line 304: Line 307:
 #  See `hub_connect_ip` for cases where the bind and connect address should  #  See `hub_connect_ip` for cases where the bind and connect address should
 #  differ, or `hub_bind_url` for setting the full bind URL.  #  differ, or `hub_bind_url` for setting the full bind URL.
- #c.JupyterHub.hub_ip = '192.168.27.20' 
 #c.JupyterHub.hub_ip = '127.0.0.1'  #c.JupyterHub.hub_ip = '127.0.0.1'
 c.JupyterHub.hub_ip = '0.0.0.0'  c.JupyterHub.hub_ip = '0.0.0.0'
Line 354: Line 356:
 #  .. deprecated: 0.9  #  .. deprecated: 0.9
 #      Use JupyterHub.bind_url  #      Use JupyterHub.bind_url
- c.JupyterHub.ip = '192.168.27.20'+ c.JupyterHub.ip = my_ip_addr
 ## Supply extra arguments that will be passed to Jinja environment.  ## Supply extra arguments that will be passed to Jinja environment.
Line 499: Line 501:
 #    "coursewarehub": "niicloudoperation/jupyterhub-singleuser",  #    "coursewarehub": "niicloudoperation/jupyterhub-singleuser",
 #}  #}
- c.DockerSpawner.remove = True + #c.DockerSpawner.remove = True 
- c.DockerSpawner.extra_create_kwargs​ = {'user': 'root'}+ #c.DockerSpawner.extra_create_kwargs = {'user': 'root'}
 #c.DockerSpawner.extra_host_config = {'runtime': 'nvidia'}  #c.DockerSpawner.extra_host_config = {'runtime': 'nvidia'}
 c.Spawner.environment = {'GRANT_SUDO': 'yes'}  c.Spawner.environment = {'GRANT_SUDO': 'yes'}
- notebook_dir = '/home/jovyan/work' + #notebook_dir = '/home/jovyan/work' 
- c.DockerSpawner.notebook_dir = notebook_dir + #c.DockerSpawner.notebook_dir = notebook_dir 
- c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir }+ #c.DockerSpawner.volumes = { 'jupyterhub-user-{username}': notebook_dir }
 #from jupyter_client.localinterfaces import public_ips  #from jupyter_client.localinterfaces import public_ips
Line 804: Line 806:
 #  path! They can do so with many other means.  #  path! They can do so with many other means.
 #c.Spawner.notebook_dir = '/home/jupyter'  #c.Spawner.notebook_dir = '/home/jupyter'
- c.Spawner.notebook_dir = '~/notebook'+ #c.Spawner.notebook_dir = '/notebook'     note set!  it is because, this has bug!
 ## An HTML form for options a user can specify on launching their server.  ## An HTML form for options a user can specify on launching their server.


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

66 user(s) are online (36 user(s) are browsing xpwiki)

Members: 0
Guests: 66

more...

Access Counter

Today : 1016710167101671016710167
Yesterday : 1306913069130691306913069
Total : 2363496323634963236349632363496323634963236349632363496323634963
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com