You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated the installation page with tab based navigation (#608)
* [skip actions][skip azp][skip cirrus] updated the installation page with tab based navigation
* [skip actions][skip azp][skip cirrus] changed the custom tab based installation navigation to the themes built-in shortcode for tabs
* [skip actions][skip azp][skip cirrus] removed hyperlinks, moved types-stubs from the tab-based navigation
* [skip actions][skip azp][skip cirrus] moved the See next steps out of the tabs component
* style nit
* [skip actions][skip azp][skip cirrus] corrected the hyperlinks
* Update install.md
* lint
---------
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
1. Install `uv` following, [the instructions in the uv documentation](https://docs.astral.sh/uv/getting-started/installation/).
48
44
49
-
2.Create a new project in a new subdirectory, by executing the following in a terminal:
45
+
2. Create a new project in a new subdirectory, by executing the following in a terminal:
50
46
51
-
uv init try-scipy
52
-
cd try-scipy
47
+
```bash
48
+
uv init try-scipy
49
+
cd try-scipy
50
+
```
53
51
54
-
{{< admonition hint >}}
52
+
{{< admonition hint >}}
55
53
The second command changes directory into the directory of your project.
56
-
{{< /admonition >}}
54
+
{{< /admonition >}}
57
55
58
-
3.Add SciPy to your project:
56
+
3. Add SciPy to your project:
59
57
60
-
uv add scipy
58
+
```bash
59
+
uv add scipy
60
+
```
61
61
62
-
{{< admonition note >}}
62
+
{{< admonition note >}}
63
63
This will automatically install Python if you don't already have it installed!
64
-
{{< /admonition >}}
64
+
{{< /admonition >}}
65
65
66
-
{{< admonition tip >}}
66
+
{{< admonition tip >}}
67
67
You can install other Python libraries in the same way, e.g.
68
68
69
-
uv add matplotlib
69
+
```bash
70
+
uv add matplotlib
71
+
```
70
72
71
-
{{< /admonition >}}
73
+
{{< /admonition >}}
72
74
73
-
4.Try out SciPy!
75
+
4. Try out SciPy!
74
76
75
-
uv run python
77
+
```bash
78
+
uv run python
79
+
```
76
80
77
-
This will launch a Python interpreter session, from which you can `import scipy`.
81
+
This will launch a Python interpreter session, from which you can `import scipy`.
78
82
79
83
<!-- prettier-ignore-end -->
80
84
@@ -117,23 +121,30 @@ tool [`pixi`] are very similar to the steps for `uv`:
117
121
118
122
2. Create a new project in a new subdirectory:
119
123
120
-
pixi init try-scipy
121
-
cd try-scipy
124
+
```bash
125
+
pixi init try-scipy
126
+
cd try-scipy
127
+
```
122
128
123
129
3. Add SciPy to your project:
124
130
125
-
pixi add scipy
131
+
```bash
132
+
pixi add scipy
133
+
```
126
134
127
-
4.Try out SciPy!
135
+
4. Try out SciPy!
128
136
129
-
pixi run python
137
+
```bash
138
+
pixi run python
139
+
```
130
140
131
-
See next steps in [the SciPy user guide][scipy-user-guide].
141
+
'''
132
142
143
+
[[tab]]
144
+
name = 'Environment Based'
145
+
content = '''
133
146
<aname="environment-based"></a>
134
147
135
-
## Environment-based workflows
136
-
137
148
In project-based workflows, a project is a directory containing a manifest
138
149
file describing the project, a lock-file describing the exact dependencies
139
150
of the project, and the project's (potentially multiple) environments.
@@ -152,14 +163,15 @@ but lack some reproducibility benefits of project-based workflows.
152
163
153
164
2. Create and activate a virtual environment with `venv`.
154
165
155
-
{{< admonition hint >}}
166
+
{{< admonition hint >}}
156
167
See [the tutorial in the Python Packaging User Guide](https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments).
0 commit comments