Skip to content

Commit fac2cca

Browse files
committed
Consist line_profiler installation instructions with #20
Spotted this whilst reading through materials ahead of running the course on Friday.
1 parent a425e57 commit fac2cca

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

episodes/profiling-lines.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,9 @@ In this episode we will cover the usage of the line-level profiler `line_profile
4444
It is not part of the Python standard library, and therefore must be installed via pip.
4545

4646
```sh
47-
pip install line_profiler[all]
47+
pip install "line_profiler[all]"
4848
```
4949

50-
:::::::::::::::: spoiler
51-
52-
### Mac OS
53-
54-
If you are unable to install `line_profiler` via `pip` on MacOS. Instead it can be installed via `conda`.
55-
56-
```sh
57-
conda install line_profiler
58-
```
59-
60-
It may first be necessary to enable conda-forge.
61-
62-
```sh
63-
conda config --add channels conda-forge
64-
```
65-
::::::::::::::::::::::::
66-
6750
To use `line_profiler` decorate methods to be profiled with `@profile` which is imported from `line_profiler`.
6851

6952
For example, the below code:

0 commit comments

Comments
 (0)