-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDC Tools sprints 3 and 4 #1276
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for cyf-programming ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for cyf-tracks failed. Why did it fail? →
|
✅ Deploy Preview for cyf-itd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for cyf-sdc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for cyf-piscine failed. Why did it fail? →
|
✅ Deploy Preview for cyf-curriculum canceled.
|
❌ Deploy Preview for cyf-common failed. Why did it fail? →
|
❌ Deploy Preview for cyf-launch failed. Why did it fail? →
|
753add7
to
d848b5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few tiny notes. Loving it. So happy to see cowsay hee.
common-content/en/module/tools/comparing-javascript-and-python/index.md
Outdated
Show resolved
Hide resolved
common-content/en/module/tools/comparing-javascript-and-python/index.md
Outdated
Show resolved
Hide resolved
common-content/en/module/tools/comparing-javascript-and-python/index.md
Outdated
Show resolved
Hide resolved
common-content/en/module/tools/comparing-javascript-and-python/index.md
Outdated
Show resolved
Hide resolved
common-content/en/module/tools/using-python-dependencies/index.md
Outdated
Show resolved
Hide resolved
import cowsay | ||
``` | ||
|
||
If we try to run `python3 cow.py`, we'll get an error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we try to run `python3 cow.py`, we'll get an error: | |
Run `python3 cow.py` and trigger this error: |
] | ||
+++ | ||
|
||
We often need to use libraries in Python. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We often need to use libraries in Python. | |
We often use libraries in Python. |
|
||
### Virtual environments | ||
|
||
To install the dependencies, we need to make something called a virtual environment, where they will get installed to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define virtual environment. Use a simple concrete analogy and pop it in a blockquote.
|
||
To install the dependencies, we need to make something called a virtual environment, where they will get installed to. | ||
|
||
First we need to _create_ the virtual environment. We do this by running `python3 -m venv .venv`. This will create a virtual environment in a directory named `.venv`. We could actually create it anywhere, e.g. we could run `python3 -m venv /tmp/python_modules` to create it in a directory named `/tmp/python_modules`. We tend to just use a directory called `.venv` at the root of our project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identify this as a convention.
…/index.md Co-authored-by: Sally McGrath <[email protected]>
…/index.md Co-authored-by: Sally McGrath <[email protected]>
…/index.md Co-authored-by: Sally McGrath <[email protected]>
…/index.md Co-authored-by: Sally McGrath <[email protected]>
…/index.md Co-authored-by: Sally McGrath <[email protected]>
…/index.md Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
…/index.md Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Co-authored-by: Sally McGrath <[email protected]>
Courseworks are present in https://github.com/CodeYourFuture/Module-Tools/issues