cc_staff
505
edits
No edit summary |
(Marked this version for translation) |
||
Line 53: | Line 53: | ||
[https://github.com/cmd-ntrf/jupyter-lmod Jupyter Lmod] is an extension that allows you to interact with environment modules before launching kernels. The extension uses the Lmod's Python interface to accomplish module-related tasks like loading, unloading, saving a collection, etc. | [https://github.com/cmd-ntrf/jupyter-lmod Jupyter Lmod] is an extension that allows you to interact with environment modules before launching kernels. The extension uses the Lmod's Python interface to accomplish module-related tasks like loading, unloading, saving a collection, etc. | ||
{{Commands | {{Commands | ||
|prompt=(jupyter_py3)[name@server $] | |prompt=(jupyter_py3)[name@server $] | ||
Line 61: | Line 60: | ||
|jupyter serverextension enable --py jupyterlmod --sys-prefix | |jupyter serverextension enable --py jupyterlmod --sys-prefix | ||
}} | }} | ||
=== Proxy web services === | === Proxy web services === <!--T:14--> | ||
<!--T:70--> | |||
[https://github.com/jupyterhub/nbserverproxy nbserverproxy] enables users to reach arbitrary web services running within their spawned Jupyter server. This is useful to access web services that are listening only on a port of the localhost like [https://www.tensorflow.org/programmers_guide/summaries_and_tensorboard TensorBoard]. | [https://github.com/jupyterhub/nbserverproxy nbserverproxy] enables users to reach arbitrary web services running within their spawned Jupyter server. This is useful to access web services that are listening only on a port of the localhost like [https://www.tensorflow.org/programmers_guide/summaries_and_tensorboard TensorBoard]. | ||
Line 70: | Line 70: | ||
|jupyter serverextension enable --py nbserverproxy --sys-prefix | |jupyter serverextension enable --py nbserverproxy --sys-prefix | ||
}} | }} | ||
==== Example ==== | ==== Example ==== <!--T:71--> | ||
<!--T:72--> | |||
In Jupyter, a user starts a web service via 'Terminal' in 'New'' dropdown list: | In Jupyter, a user starts a web service via 'Terminal' in 'New'' dropdown list: | ||
<!--T:73--> | |||
{{Command | {{Command | ||
|tensorboard --port{{=}}8008 | |tensorboard --port{{=}}8008 | ||
}} | }} | ||
<!--T:74--> | |||
The service is proxied off of /proxy/ at https://address.of.notebook.server/user/theuser/proxy/8008. | The service is proxied off of /proxy/ at https://address.of.notebook.server/user/theuser/proxy/8008. | ||