You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The app also creates a <code>$HOME/.local/share/ondemand/apps/jupyter_app/</code> in your home directory on the back-end and mounts this into JupyterLab at <code>/mnt/jupyter_host</code>. If you create virtual environments and/or install Python packages into <code>/mnt/jupyter_host</code> when using JupyterLab, then these will be available to you when you run the app in future (each run of the app creates a new container, and this mount allows for state to be persisted between runs).</p>
2827
2851
<divclass="admonition note">
2828
2852
<pclass="admonition-title">Note</p>
2829
-
<p>It is recommended that this directory be used for configuration files, code, scripts and Python packages only. It should <strong>not</strong> be used for data.</p>
2853
+
<p>It is recommended that <code>/mnt/jupyter_host</code> be used for configuration files, code, scripts and Python packages only. It should <strong>not</strong> be used for data.</p>
<p>A workaround to make these directories visible via JupyterLab file browsers is to create symbolic links from your home directory, within the container, to these directories. This can be done within a JupyterLab Terminal as follows:</p>
<p>JupyterLab is configured with your web proxy environment variables so you can install packages from PyPI when using JupyterLab. It is recommended that you create virtual environments and/or install Python packages into <code>/mnt/jupyter_host</code> so that you can reuse these the next time you run the app on the same back-end.</p>
2883
+
<p>JupyterLab is configured with your web proxy environment variables so you can install packages from PyPI when using JupyterLab. It is recommended that you install Python packages and/or create virtual environments within <code>/mnt/jupyter_host</code> so that you can reuse these the next time you run the app on the same back-end.</p>
2884
+
<p>There are a number of ways you can use such a directory within JupyterLab. Two examples are as follows. Python and JupyterLab resources online may suggest others.</p>
2885
+
<h3id="install-packages-within-a-mntjupyter_host-subdirectory">Install packages within a <code>/mnt/jupyter_host</code> subdirectory</h3>
2886
+
<p>Install packages within a <code>/mnt/jupyter_host</code> subdirectory. For example:</p>
<p>Register the virtual environment with JupyterLab, to create new IPython kernels to provide access to the virtual environment within JupyterLab Notebook and Console sessions:</p>
<p>On a job's job card, click the <strong>Session ID</strong> link to open the <ahref="../../files/">File Manager</a>, pointing at the job context directory for the job on the Open OnDemand VM.</p>
<p>A workaround to make this directory visible via JupyterLab file browsers is to create symbolic links from your home directory to this directory. This can be done within a JupyterLab Terminal as follows:</p>
<p>JupyterLab is configured with your web proxy environment variables so you can install packages from PyPI when using JupyterLab.</p>
2854
+
<p>If installing packages you may need to install these within your home directory. Two examples are as follows. Python and JupyterLab resources online may suggest others.</p>
2855
+
<h3id="install-packages-within-your-home-directory">Install packages within your home directory</h3>
2856
+
<p>Install packages within a subdirectory of your home directory. For example:</p>
<p>Register the virtual environment with JupyterLab, to create new IPython kernels to provide access to the virtual environment within JupyterLab Notebook and Console sessions:</p>
<p>On a job's job card, click the <strong>Session ID</strong> link to open the <ahref="../../files/">File Manager</a>, pointing at the job context directory for the job on the Open OnDemand VM.</p>
<p>The app also creates a <code>$HOME/.local/share/ondemand/apps/rstudio_app/</code> in your home directory on the back-end and mounts this into RStudio Server at <code>/mnt/rstudio_host</code>. If you install R packages into <code>/mnt/rstudio_host</code> when using RStudio Server, then these will be available to you when you run the app in future (each run of the app creates a new container, and this mount allows for state to be persisted between runs).</p>
2832
2847
<divclass="admonition note">
2833
2848
<pclass="admonition-title">Note</p>
2834
-
<p>It is recommended that this directory be used for configuration files, code, scripts and R packages only. It should <strong>not</strong> be used for data.</p>
2849
+
<p>It is recommended that <code>/mnt/rstudio_host</code> be used for configuration files, code, scripts and R packages only. It should <strong>not</strong> be used for data.</p>
<p>A workaround to make this directories visible via RStudio Server file browsers is to create symbolic links from your home directory, within the container, to these directories. This can be done within an RStudio Server Terminal as follows:</p>
<h2id="installing-r-packages">Installing R packages</h2>
2865
2880
<p>RStudio Server is configured with your web proxy environment variables so you can install packages from CRAN when using RStudio Server. It is recommended that you install R packages into <code>/mnt/rstudio_host</code> so that you can reuse these the next time you run the app on the same back-end.</p>
2881
+
<p>There are a number of ways you can use such a directory within RStudio Server. One examples is as follows. R and RStudio Server resources online may suggest others.</p>
2882
+
<h3id="install-packages-within-mntrstudio_host">Install packages within <code>/mnt/rstudio_host</code></h3>
2883
+
<p>Install packages within <code>/mnt/rstudio_host</code>. For example:</p>
<p>On a job's job card, click the <strong>Session ID</strong> link to open the <ahref="../../files/">File Manager</a>, pointing at the job context directory for the job on the Open OnDemand VM.</p>
0 commit comments