Skip to content

Commit

Permalink
Add a step to the development environment preparation to enable the P…
Browse files Browse the repository at this point in the history
…ython Terminal Execute in File Dir option.
  • Loading branch information
barzeer committed Nov 22, 2023
1 parent bb94440 commit d1764be
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 33 deletions.
61 changes: 28 additions & 33 deletions docs/lesson01/dev_env.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,39 +163,32 @@ <h1>Prepare Your Development Environment</h1>
Welcome to CSE 111, Amelia!</pre></div></li>
</ol></div></li>

<li><div>Enable the "Python Terminal Execute in File Dir" setting.
<ul>
<li><div>If your computer is running Microsoft Windows, do
the following:
<ol>
<li><div>Using VS Code, click the File menu, then
Preferences, then Settings.
<figure class="full">
<img loading="lazy" src="settings.png"
alt="How to open Settings in VS Code"
title="How to open Settings in VS Code"></figure>
</div></li>
<li><div>In the "Search settings" box, enter "Python
Execute In File Dir" and then check the checkbox on the
left of the option "Python &gt; Terminal: Execute In
File Dir"
<figure class="full">
<img loading="lazy" src="in_file_dir.png"
alt="How to find and enable the Python Execute in File Dir option"
title="How to find and enable the Python Execute in File Dir option">
</figure>
</div></li>
</ol></div></li>
<li><div>If your computer is running Mac OS, do the
following:
<ol>
<li><div>Using VS Code, click</div></li>
<li><div>In the "Search settings" box, enter "Python
Execute In File Dir" and then check the checkbox on the
left of the option "Python &gt; Terminal: Execute In
File Dir"</div></li>
</ol></div></li>
</ul></div></li>
<li><div>In VS Code, enable the "Python Terminal Execute in File
Dir" setting.
<ol>
<li><div><p>If your computer is running <dfn>Microsoft
Windows</dfn>, click the VS Code File menu, then
"Preferences", then "Settings".</p>
<figure class="full">
<img loading="lazy" src="settings.png"
alt="How to open Settings in VS Code"
title="How to open Settings in VS Code"></figure>
<p>or</p>
<p>If your computer is running <dfn>Mac OS</dfn>, click the
"Code" menu, then "Settings...", then "Settings".</p>
</div></li>

<li><div>In the "Search settings" box, enter "Python
Execute In File Dir" and then check the checkbox on the
left of the option "Python &gt; Terminal: Execute In
File Dir"
<figure class="full">
<img loading="lazy" src="in_file_dir.png"
alt="How to find and enable the Python Execute in File Dir option"
title="How to find and enable the Python Execute in File Dir option">
</figure>
</div></li>
</ol></div></li>
</ol>

<h2>Summary</h2>
Expand All @@ -209,6 +202,8 @@ <h2>Summary</h2>
<li><div>Install a text editor named Visual Studio Code</div></li>
<li><div>Install the Microsoft Python extension inside VS
Code</div></li>
<li><div>In VS Code, enable the "Execute in File Dir"
option</div></li>
<li><div>Download and run a sample Python program to ensure your
computer is ready</div></li>
</ol>
Expand Down
Binary file modified docs/lesson01/in_file_dir.pdn
Binary file not shown.
Binary file modified docs/lesson01/in_file_dir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/lesson01/install.pdn
Binary file not shown.
Binary file modified docs/lesson01/install.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/lesson01/settings.pdn
Binary file not shown.
Binary file modified docs/lesson01/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1764be

Please sign in to comment.