Skip to content
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

Added python3.9 requirement, example command for creating it #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ _OCP CAD Viewer for VS Code_ is an extension to show [CadQuery](https://github.c

- A fairly recent version of VS Code, e.g. 1.76.0 or newer
- [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) installed in VS Code
- `pip` available in the Python enviroment that will be used for CAD development
- a Python 3.9 environment with `pip` available (3.9 is currently the highest version that casadi can be installed under)
- This can be created by installing python 3.9, running `python3.9 -m venv venv`, then activating the virtual enviroment and ensuring that VS Code detects it before continuing with the installation

**Steps**:

Expand All @@ -28,6 +29,8 @@ _OCP CAD Viewer for VS Code_ is an extension to show [CadQuery](https://github.c
- Paste the import code by using the paste button behing the library names in the "Viewer Manager" section
- Use the usual Run menu to run the code

Please note that using this method runs your entire script every time you want to refresh the model, which has a ~2s delay due to having to import the `cadquery` or `build123d` libraries. Using the iPython method below takes a couple of extra steps to set up, but **vastly** reduces this delay by only loading the libraries once per session.

![Use with run](screenshots/ocp_vscode-work.gif)

### Using with IPython extension
Expand Down