-
Notifications
You must be signed in to change notification settings - Fork 43
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
DOCS-1111: Add virtualenv instructions for Python SDK #1830
DOCS-1111: Add virtualenv instructions for Python SDK #1830
Conversation
Overall readability score: 54.7 (🟢 +0.04)
View detailed metrics🟢 - Shows an increase in readability
Averages:
View metric targets
|
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.
small suggested changes, else looks good
docs/program/python-venv.md
Outdated
> **INFO** | ||
> Creating a virtual environment (`venv`) is important as it isolates this python environment from any other you might already have. |
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 currently don't have this type of styling in our style guide, while we can add it we'd need to discuss that as a team first.
Let's stick with an alert until then
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.
However, this also duplicates the info above. in the first paragraph on the page. I think we should not duplicate that.
docs/program/python-venv.md
Outdated
source viam-env/bin/activate | ||
``` | ||
|
||
Now, you should see `(viam-env)` prepend the commands in your terminal window. |
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.
Remove conditional
docs/program/python-venv.md
Outdated
``` | ||
|
||
Now, you should see `(viam-env)` prepend the commands in your terminal window. | ||
This shows that the python packages being used are from this particular environment. |
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.
try remove passive voice
docs/program/python-venv.md
Outdated
|
||
## Setup your IDE | ||
|
||
You'll now want to point your IDE to use the python interpreter of your new environment, rather than the default interpreter, likely the global python interpreter. |
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.
avoid future tense - instead explain why they want that "If you awnt to ... then"
docs/program/python-venv.md
Outdated
## Start building | ||
|
||
You are now ready to start using Viam's Python SDK! |
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.
This should instead point the user to the next step. Probably back to the /program page where they can get the code sample
Good to merge if you need this quickly but let's then make a ticket to address this feedback separately. |
Co-authored-by: Naomi Pentrel <[email protected]>
Co-authored-by: Naomi Pentrel <[email protected]>
docs/program/python-venv.md
Outdated
--- | ||
title: "Prepare your Python Virtual Environment" | ||
linkTitle: "Prepare your Python Virtualenv for Viam" | ||
weight: 50 |
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.
weight: 50 | |
weight: 10 |
docs/program/python-venv.md
Outdated
source viam-env/bin/activate | ||
``` | ||
|
||
Now, you should see `(viam-env)` prepend the commands in your terminal window. |
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.
Now, you should see `(viam-env)` prepend the commands in your terminal window. | |
Now, watch `(viam-env)` prepend the commands in your terminal window. |
Co-authored-by: Naomi Pentrel <[email protected]>
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 more small things
Co-authored-by: Naomi Pentrel <[email protected]>
You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/a8992fcde2bb3a72c7be0506eedf2bc6cc572e2d/public |
Big ask for HackTheNorth from PennApps crew