Skip to content

Commit

Permalink
Updated installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Oct 25, 2021
1 parent 9ba56d9 commit 44c1f69
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ You can also run some of the notebooks interactively with Binder too

# Coding log

* 25 Oct 2021
* Minor update to installation instructions
* 08 Oct 2021
* Updated some library versions (chartpy, findatapy and finmarketpy)
* 29 Jul 2021
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14321,9 +14321,9 @@ <h2 id="Download-and-install-Anaconda">Download and install Anaconda<a class="an
</div>
<div class="jp-Cell-inputWrapper"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput " data-mime-type="text/markdown">
<h2 id="Windows:-Installing-a-conda-environment-for-Windows-from-YML-file-(quickest-method---recommended)">Windows: Installing a conda environment for Windows from YML file (quickest method - recommended)<a class="anchor-link" href="#Windows:-Installing-a-conda-environment-for-Windows-from-YML-file-(quickest-method---recommended)">&#182;</a></h2><p>We can download <a href="https://raw.githubusercontent.com/cuemacro/teaching/master/pythoncourse/installation/environment_windows.yml">environment_windows.yml (click to download)</a> from our browser or via <code>curl</code> in the command line. We can use that YML file to create our conda environment with all the necessary packages. This also installs the exact same libraries versions that I have (and reduces the likelihood of version conflicts between libraries). The conda environment file is periodically updated for new versions of libraries. Sometimes conda might hang for a very long time, if this is the case, try the "slower" method below.</p>
<h2 id="Windows:-Installing-a-conda-environment-for-Windows-from-YML-file-(quickest-method---recommended)">Windows: Installing a conda environment for Windows from YML file (quickest method - recommended)<a class="anchor-link" href="#Windows:-Installing-a-conda-environment-for-Windows-from-YML-file-(quickest-method---recommended)">&#182;</a></h2><p>We can download <a href="https://raw.githubusercontent.com/cuemacro/teaching/master/pythoncourse/installation/environment_windows.yml">environment_windows.yml (click to download)</a> from our browser or via <code>curl</code> in the command line (or it will be alongside the teaching notes folder if you attend a Cuemacro course). We can use that YML file to create our conda environment with all the necessary packages. This also installs the exact same libraries versions that I have (and reduces the likelihood of version conflicts between libraries). The conda environment file is periodically updated for new versions of libraries. Sometimes conda might hang for a very long time, if this is the case, try the "slower" method below.</p>
<ul>
<li>Open up the Anaconda Prompt (should be in the Start Menu usually labelled Anaconda Prompt (Anaconda3))</li>
<li>Open up the Anaconda Prompt (should be in the Start Menu usually labelled <em>Anaconda Prompt (Anaconda3)</em> try to avoid using <em>Anaconda Powershell Prompt (Anaconda3)</em>, because it can sometimes have issues with <code>curl</code>)</li>
<li><p>In this prompt, your Anaconda folder will be on the path (ie. it will recognise where <code>conda</code> is installed etc.)</p>
<ul>
<li>Type in <code>conda activate</code> and press Enter to exit the current conda environment, then <code>conda remove -n py38class --all --yes</code> and press Enter to remove any existing environments called <code>py38class</code></li>
Expand All @@ -14338,7 +14338,7 @@ <h2 id="Windows:-Installing-a-conda-environment-for-Windows-from-YML-file-(quick
</li>
<li>Anaconda will then run all the necessary command to download the various packages above using conda and pip</li>
<li>Sometimes when you see the progress bar for certain libraries it will appear to stall, but you can sometimes try pressing "y" to make it continue</li>
<li>At the end of the process you'll have a Python 3.7 conda environment with the name 'py38class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.</li>
<li>At the end of the process you'll have a Python 3.8 conda environment with the name 'py38class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.</li>
<li>Note that you may need to put in the full path for wherever you downloaded the <code>environment_windows.yml</code> file or you can simply <code>cd</code> to that folder and then run the above conda command</li>
<li>Typically when you download files from your internet browser, Windows will usually save it in the users downloads folder, this is usually accessable by doing
<code>cd \Users\&lt;your-username&gt;\Downloads</code> and then pressing Enter</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
"source": [
"## Windows: Installing a conda environment for Windows from YML file (quickest method - recommended)\n",
"\n",
"We can download [environment_windows.yml (click to download)](https://raw.githubusercontent.com/cuemacro/teaching/master/pythoncourse/installation/environment_windows.yml) from our browser or via `curl` in the command line. We can use that YML file to create our conda environment with all the necessary packages. This also installs the exact same libraries versions that I have (and reduces the likelihood of version conflicts between libraries). The conda environment file is periodically updated for new versions of libraries. Sometimes conda might hang for a very long time, if this is the case, try the \"slower\" method below.\n",
"We can download [environment_windows.yml (click to download)](https://raw.githubusercontent.com/cuemacro/teaching/master/pythoncourse/installation/environment_windows.yml) from our browser or via `curl` in the command line (or it will be alongside the teaching notes folder if you attend a Cuemacro course). We can use that YML file to create our conda environment with all the necessary packages. This also installs the exact same libraries versions that I have (and reduces the likelihood of version conflicts between libraries). The conda environment file is periodically updated for new versions of libraries. Sometimes conda might hang for a very long time, if this is the case, try the \"slower\" method below.\n",
"\n",
"* Open up the Anaconda Prompt (should be in the Start Menu usually labelled Anaconda Prompt (Anaconda3))\n",
"* Open up the Anaconda Prompt (should be in the Start Menu usually labelled *Anaconda Prompt (Anaconda3)* try to avoid using *Anaconda Powershell Prompt (Anaconda3)*, because it can sometimes have issues with `curl`)\n",
"* In this prompt, your Anaconda folder will be on the path (ie. it will recognise where `conda` is installed etc.)\n",
" * Type in `conda activate` and press Enter to exit the current conda environment, then `conda remove -n py38class --all --yes` and press Enter to remove any existing environments called `py38class`\n",
" * If you haven't already downloaded the `environment_windows.yml` file you can do it from the command line using `curl`:\n",
Expand All @@ -87,7 +87,7 @@
" * `conda env create -f .\\environment_windows.yml`\n",
" * Anaconda will then run all the necessary command to download the various packages above using conda and pip\n",
" * Sometimes when you see the progress bar for certain libraries it will appear to stall, but you can sometimes try pressing \"y\" to make it continue\n",
" * At the end of the process you'll have a Python 3.7 conda environment with the name 'py38class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.\n",
" * At the end of the process you'll have a Python 3.8 conda environment with the name 'py38class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.\n",
" * Note that you may need to put in the full path for wherever you downloaded the `environment_windows.yml` file or you can simply `cd` to that folder and then run the above conda command\n",
" * Typically when you download files from your internet browser, Windows will usually save it in the users downloads folder, this is usually accessable by doing\n",
" `cd \\Users\\<your-username>\\Downloads` and then pressing Enter\n",
Expand Down
4 changes: 2 additions & 2 deletions pythoncourse/notebooks/coronavirus_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -16602,9 +16602,9 @@ <h2 id="Interactive-plots">Interactive plots<a class="anchor-link" href="#Intera



<div id="d2f55d3c-c4e5-4829-9393-90c2d835ed2b" class="jupyter-widgets jp-OutputArea-output ">
<div id="fead75f0-46e5-4ddd-9746-939616da7f4e" class="jupyter-widgets jp-OutputArea-output ">
<script type="text/javascript">
var element = document.getElementById('d2f55d3c-c4e5-4829-9393-90c2d835ed2b');
var element = document.getElementById('fead75f0-46e5-4ddd-9746-939616da7f4e');
</script>
<script type="application/vnd.jupyter.widget-view+json">
{"model_id": "435f1ccca6d042f89a75c45a4b37d5f6", "version_major": 2, "version_minor": 0}
Expand Down

0 comments on commit 44c1f69

Please sign in to comment.