Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TJonCooper authored Nov 26, 2024
1 parent c2fd263 commit 4dff11f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -1959,10 +1959,11 @@ <h3><strong>Using Python - Conda</strong></h3>
separate from your UserSpace. Chronos provides a dedicated 10TB HDD for
this purpose, located at:</b></p>
<pre class="r"><code>/media/chronos/Env_Storage/$USER #For example: /media/chronos/Env_Storage/tim</code></pre>
<p>To create a new Conda environment called ‘EnvName’, at this
location:</p>
<pre class="r"><code>conda create --prefix /media/chronos/Env_Storage/$USER/EnvName python=3.11 #Python 3.11 is used for example purposes only
conda activate /media/chronos/Env_Storage/$USER/EnvName</code></pre>
<p>To register this directory with Conda, use:</p>
<pre class="r"><code>conda config --prepend envs_dirs /media/chronos/Env_Storage/$USER</code></pre>
<p>To create a new Conda environment called ‘EnvName’:</p>
<pre class="r"><code>conda create -n EnvName python=3.11 #Python 3.11 is used for example purposes only
conda activate EnvName</code></pre>
<p>All Conda environments are available from within any tmux session and
they do not need to be explicitly installed within one. To list all
available Conda environments:</p>
Expand All @@ -1972,13 +1973,13 @@ <h3><strong>Using Python - Conda</strong></h3>
Instead we encourage users to export a configuration file for each
environment to their UserSpace (which is backed up). For
example:</b></p>
<pre class="r"><code>conda activate /media/chronos/Env_Storage/$USER/EnvName
<pre class="r"><code>conda activate EnvName
conda list --explicit &gt; /media/chronos/Storage/$USER/EnvName.yml</code></pre>
<p>Which serves as a backup, and allows for easy and rapid recreation of
the environment:</p>
<pre class="r"><code>conda create --prefix /media/chronos/Env_Storage/$USER/EnvName_Recreated --file /media/chronos/Storage/$USER/EnvName.yml</code></pre>
<pre class="r"><code>conda create -n EnvName_Recreated --file /media/chronos/Storage/$USER/EnvName.yml</code></pre>
<p>Finally, to delete a Conda environment:</p>
<pre class="r"><code>conda remove --prefix /media/chronos/Env_Storage/$USER/EnvName --all</code></pre>
<pre class="r"><code>conda remove --all -n EnvName</code></pre>
<hr />
<p>Chronos contains a high-end, server-grade GPU to power Deep Learning
and other AI-related processes through Python. To facilitate this, all
Expand All @@ -1990,7 +1991,7 @@ <h3><strong>Using Python - JupyterLab</strong></h3>
<p>To provide a multi-tool, graphical interface for Python, we recommend
installing JupyterLab into each, individual conda environment. For
example:</p>
<pre class="r"><code>conda activate /media/chronos/Env_Storage/$USER/EnvName
<pre class="r"><code>conda activate EnvName
conda install jupyter</code></pre>
<p>We typically recommend using JupyterLab, as opposed to Jupyter
Notebook, as it provides additional functionalities including a
Expand All @@ -2002,7 +2003,7 @@ <h3><strong>Using Python - JupyterLab</strong></h3>
Port Mapping</a></p>
<p>Add this port to your installation by first creating a Jupyter
configuration file:</p>
<pre class="r"><code>conda activate /media/chronos/Env_Storage/$USER/EnvName
<pre class="r"><code>conda activate EnvName
jupyter lab --generate-config #Replace &#39;lab&#39; with &#39;notebook&#39; if using jupyter notebook
nano ~/.jupyter/jupyter_lab_config.py</code></pre>
<p>Adding the following lines to the top of the file:</p>
Expand All @@ -2014,7 +2015,7 @@ <h3><strong>Using Python - JupyterLab</strong></h3>
<p>JupyterLab can only access the files and folders stored within the
directory it was launched from. For example, to launch JupyterLab with
access to your entire UserSpace:</p>
<pre class="r"><code>conda activate /media/chronos/Env_Storage/$USER/EnvName
<pre class="r"><code>conda activate EnvName
cd ~/UserSpace
jupyter lab</code></pre>
<p>To access Jupyter from your own machine, simply direct your web
Expand Down

0 comments on commit 4dff11f

Please sign in to comment.