Skip to content

Commit

Permalink
Improve troubleshooting on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
janosg committed Oct 12, 2023
1 parent d0c24ee commit 25e8ef8
Show file tree
Hide file tree
Showing 65 changed files with 504 additions and 488 deletions.
19 changes: 15 additions & 4 deletions _sources/python_basics/installation_windows/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,18 @@ before the directory you are currently in.

## Troubleshooting

- If mamba or conda are not recognized as commands in the powershell, do the following:
- open a Powershell as administrator and execute `set-executionpolicy remotesigned`
- close and re-open Powershell
- execute `conda init`
If mamba or conda are not recognized as commands in the powershell, do the following:

1. open a Powershell as administrator and execute

```bash
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
```

2. close and re-open Powershell

3. execute

```bash
conda init
```
14 changes: 7 additions & 7 deletions background/file_systems/objectives_materials.html
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,13 @@ <h2>Additional Materials<a class="headerlink" href="#additional-materials" title
<h2>Quiz<a class="headerlink" href="#quiz" title="Permalink to this heading">#</a></h2>
<div class="cell tag_remove-input docutils container">
<div class="cell_output docutils container">
<div class="output text_html"><div id="NjosPAOzwoNv" data-shufflequestions="False"
<div class="output text_html"><div id="HbwkxyVaYFbf" data-shufflequestions="False"
data-shuffleanswers="True"
data-preserveresponses="false"
data-numquestions="1000000"
data-maxwidth="600"
style="border-radius: 10px; text-align: left"> <style>
#NjosPAOzwoNv {
#HbwkxyVaYFbf {
--jq-multiple-choice-bg: #345995;
--jq-mc-button-bg: #fafafa;
--jq-mc-button-border: #e0e0e0e0;
Expand Down Expand Up @@ -701,7 +701,7 @@ <h2>Quiz<a class="headerlink" href="#quiz" title="Permalink to this heading">#</
background-color: var(--jq-correct-color);
}
}
</style></div><script type="application/javascript">var questionsNjosPAOzwoNv=[{"question": "In which of the following Operating Systems can you find\n the following path \"/Users/username/Documents\"?", "type": "multiple_choice", "answers": [{"answer": "Linux-based OS", "correct": false, "feedback": "Incorrect. While Linux-based OS\n use almost the same ."}, {"answer": "MacOS", "correct": true, "feedback": "Correct."}, {"answer": "Windows", "correct": false, "feedback": "Incorrect. Windows uses a different File System\n than this. Windows File System starts with the physical drive\n (e.g. C:\\) and then uses backslashes \"\\\" to separate the\n directories."}]}, {"question": "What are the key differences\n between UNIX-based and Windows-based File Systems?", "type": "many_choice", "answers": [{"answer": "Windows-systems use backslashes \"\\\" to separate\n directories,\n while UNIX-based systems use forward slashes \"/\".", "correct": true, "feedback": "Correct."}, {"answer": "Windows-systems have a more nested structure, with a\n larger number\n of directories.", "correct": false, "feedback": "Incorrect. The directories are not necessarily more\n numerous or nested in Windows."}, {"answer": "Windows-systems have a separate directory tree for each\n physical drive,\n while UNIX-based systems have a single directory tree.", "correct": true, "feedback": "Correct. For example many computers have a C:\\ and a\n D:\\ drive."}, {"answer": "Windows-systems have a single directory tree, while\n UNIX-based\n systems have a separate directory tree for each physical drive.", "correct": false, "feedback": "Incorrect. The answer is the opposite of this."}]}, {"question": "J\u00f6rn, Maria and Vinayak are working on a project together. J\u00f6rn is\n running Windows\n on his laptop,\n while Maria and Vinayak have laptops that run MacOS. For reasons that will\n become apparent\n to you in the next lectures of this course, they need to decide whether to\n use paths\n with forward slashes \"/\" or\n backslashes \"\\\" to separate directories, and they cannot\n each use the path type\n that is native to their\n operating system. What do you think they should do?", "type": "multiple_choice", "answers": [{"answer": "They should use forward slashes \"/\".", "correct": true, "feedback": "Correct. The reason for this is that while\n UNIX-based systems cannot use backslashes \"\\\" in paths,\n modern Windows-based systems can use forward slashes \"/\".\n In fact, forward slashes are the \"standard\" for OS and\n programming languages. The story behind why Windows uses\n backslashes \"\\\" is quite interesting if you want to\n google it."}, {"answer": "They should use backslashes \"\\\".", "correct": false, "feedback": "Incorrect. The reason for this is that UNIX-based\n systems cannot use backslashes \"\\\" in paths."}, {"answer": " It does not really matter which they use,\n as long as they are consistent.", "correct": false, "feedback": "Incorrect. It is very important to be consistent,\n but\n it does matter\n which type of path they use, because UNIX-based\n systems cannot use backslashes \"\\\" in paths."}]}, {"question": " What is the root directory,\n and how is it\n represented in a UNIX-based system?", "type": "multiple_choice", "answers": [{"answer": "The root directory is the directory that\n contains all other directories (the top-level\n directory in the folder structure),\n and is represented by a forward slash \"/\" in UNIX.", "correct": true, "feedback": "Correct."}, {"answer": "The root directory is the directory\n that contains all other directories (the top-level\n directory in the folder structure),\n and is represented by a backslash \"\\\" in UNIX.", "correct": false, "feedback": "Incorrect. The correct symbol is a forward\n slash \"/\"."}, {"answer": "The root directory is the directory that\n contains all the user files, and is represented\n by a forward slash \"/\" in UNIX.", "correct": false, "feedback": "Incorrect. The root directory contains all\n directories, not\n only the user files."}, {"answer": "The root directory is the directory that\n contains all other directories\n (the top-level\n directory in the folder structure),\n and is represented by \" C:\\ \".", "correct": false, "feedback": "Incorrect. \" C:\\ \" is the root directory in\n Windows-based File Systems,\n not in UNIX-based systems."}]}];
</style></div><script type="application/javascript">var questionsHbwkxyVaYFbf=[{"question": "In which of the following Operating Systems can you find\n the following path \"/Users/username/Documents\"?", "type": "multiple_choice", "answers": [{"answer": "Linux-based OS", "correct": false, "feedback": "Incorrect. While Linux-based OS\n use almost the same ."}, {"answer": "MacOS", "correct": true, "feedback": "Correct."}, {"answer": "Windows", "correct": false, "feedback": "Incorrect. Windows uses a different File System\n than this. Windows File System starts with the physical drive\n (e.g. C:\\) and then uses backslashes \"\\\" to separate the\n directories."}]}, {"question": "What are the key differences\n between UNIX-based and Windows-based File Systems?", "type": "many_choice", "answers": [{"answer": "Windows-systems use backslashes \"\\\" to separate\n directories,\n while UNIX-based systems use forward slashes \"/\".", "correct": true, "feedback": "Correct."}, {"answer": "Windows-systems have a more nested structure, with a\n larger number\n of directories.", "correct": false, "feedback": "Incorrect. The directories are not necessarily more\n numerous or nested in Windows."}, {"answer": "Windows-systems have a separate directory tree for each\n physical drive,\n while UNIX-based systems have a single directory tree.", "correct": true, "feedback": "Correct. For example many computers have a C:\\ and a\n D:\\ drive."}, {"answer": "Windows-systems have a single directory tree, while\n UNIX-based\n systems have a separate directory tree for each physical drive.", "correct": false, "feedback": "Incorrect. The answer is the opposite of this."}]}, {"question": "J\u00f6rn, Maria and Vinayak are working on a project together. J\u00f6rn is\n running Windows\n on his laptop,\n while Maria and Vinayak have laptops that run MacOS. For reasons that will\n become apparent\n to you in the next lectures of this course, they need to decide whether to\n use paths\n with forward slashes \"/\" or\n backslashes \"\\\" to separate directories, and they cannot\n each use the path type\n that is native to their\n operating system. What do you think they should do?", "type": "multiple_choice", "answers": [{"answer": "They should use forward slashes \"/\".", "correct": true, "feedback": "Correct. The reason for this is that while\n UNIX-based systems cannot use backslashes \"\\\" in paths,\n modern Windows-based systems can use forward slashes \"/\".\n In fact, forward slashes are the \"standard\" for OS and\n programming languages. The story behind why Windows uses\n backslashes \"\\\" is quite interesting if you want to\n google it."}, {"answer": "They should use backslashes \"\\\".", "correct": false, "feedback": "Incorrect. The reason for this is that UNIX-based\n systems cannot use backslashes \"\\\" in paths."}, {"answer": " It does not really matter which they use,\n as long as they are consistent.", "correct": false, "feedback": "Incorrect. It is very important to be consistent,\n but\n it does matter\n which type of path they use, because UNIX-based\n systems cannot use backslashes \"\\\" in paths."}]}, {"question": " What is the root directory,\n and how is it\n represented in a UNIX-based system?", "type": "multiple_choice", "answers": [{"answer": "The root directory is the directory that\n contains all other directories (the top-level\n directory in the folder structure),\n and is represented by a forward slash \"/\" in UNIX.", "correct": true, "feedback": "Correct."}, {"answer": "The root directory is the directory\n that contains all other directories (the top-level\n directory in the folder structure),\n and is represented by a backslash \"\\\" in UNIX.", "correct": false, "feedback": "Incorrect. The correct symbol is a forward\n slash \"/\"."}, {"answer": "The root directory is the directory that\n contains all the user files, and is represented\n by a forward slash \"/\" in UNIX.", "correct": false, "feedback": "Incorrect. The root directory contains all\n directories, not\n only the user files."}, {"answer": "The root directory is the directory that\n contains all other directories\n (the top-level\n directory in the folder structure),\n and is represented by \" C:\\ \".", "correct": false, "feedback": "Incorrect. \" C:\\ \" is the root directory in\n Windows-based File Systems,\n not in UNIX-based systems."}]}];
// Make a random ID
function makeid(length) {
var result = [];
Expand Down Expand Up @@ -1450,8 +1450,8 @@ <h2>Quiz<a class="headerlink" href="#quiz" title="Permalink to this heading">#</
Someone more knowledgeable could make this better ;-) */

function try_show() {
if(document.getElementById("NjosPAOzwoNv")) {
show_questions(questionsNjosPAOzwoNv, NjosPAOzwoNv);
if(document.getElementById("HbwkxyVaYFbf")) {
show_questions(questionsHbwkxyVaYFbf, HbwkxyVaYFbf);
} else {
setTimeout(try_show, 200);
}
Expand All @@ -1460,8 +1460,8 @@ <h2>Quiz<a class="headerlink" href="#quiz" title="Permalink to this heading">#</
{
// console.log(element);

//console.log("NjosPAOzwoNv");
// console.log(document.getElementById("NjosPAOzwoNv"));
//console.log("HbwkxyVaYFbf");
// console.log(document.getElementById("HbwkxyVaYFbf"));

try_show();
}
Expand Down
Loading

0 comments on commit 25e8ef8

Please sign in to comment.