1 | initial version |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

- download and unpack Sage binaries
- move the SAGE_ROOT folder to the desired location
- set the SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
- Update PATH by editing /etc/paths Note: You’ll need to use SUDO. (a) export SAGE_KEEP_BUILT_SPKGS="yes" (b) export SAGE_NUM_THREADS=3 (c) export SAGE_ROOT="/Users/$HOME/SageMath"
- cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab
- sage -n jupyterlab

when all this is done, try **sage -n Jupyterlab**

2 | No.2 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

- download and unpack Sage binaries
- move the SAGE_ROOT folder to the desired location
- set the SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
- Update PATH by editing /etc/paths Note: You’ll need to use SUDO. (a) export SAGE_KEEP_BUILT_SPKGS="yes" (b) export SAGE_NUM_THREADS=3 (c) export SAGE_ROOT="/Users/$HOME/SageMath"
- cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab
- sage -n jupyterlab

when all this is done, try **sage -n Jupyterlab**

3 | No.3 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

`1. download and unpack Sage`

~~binaries~~- binaries
2. move the SAGE_ROOT folder to the desired
~~location~~ - location
3. set the SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in
~~~/.zshrc~~ - ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export SAGE_ROOT="/Users/$HOME/SageMath"
4. Update PATH by editing /etc/paths Note: You’ll need to use SUDO.
~~(a) export SAGE_KEEP_BUILT_SPKGS="yes"~~/Users/philhuffman/SageMath/local/bin /usr/local/bin /usr/local/sbin /usr/bin /bin~~(b) export SAGE_NUM_THREADS=3 (c) export SAGE_ROOT="/Users/$HOME/SageMath"~~ - /usr/sbin
/sbin
/Users/philhuffman/SageMath
5. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install
~~jupyterlab~~

` `

```
jupyterlab
```

when all this is done, try **sage -n Jupyterlab**

4 | No.4 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download and unpack Sage binaries
2. move the SAGE_ROOT folder to the desired location
3. set the SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
```~~ ~~(a) export SAGE_KEEP_BUILT_SPKGS="yes"
~~ ~~(b) export SAGE_NUM_THREADS=3
~~ ~~(c) export SAGE_ROOT="/Users/$HOME/SageMath"
4. Update PATH by editing /etc/paths Note: You’ll need to use SUDO.
~~/Users/philhuffman/SageMath/local/bin
~~/Users/<HOME>/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
~~/Users/philhuffman/SageMath
~~/Users/<HOME>/SageMath
5. cd $SAGE_ROOT &&
./sage -i openssl &&
./sage -f python3 &&
make ssl &&
sage –pip install jupyterlab

when all this is done, ~~try ~~**sage -n Jupyterlab**, should work.

5 | No.5 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

`1.`

- download and unpack Sage
~~binaries 2.~~binaries- move the SAGE_ROOT folder to the desired
~~location 3.~~locationset the SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in

~~~/.zshrc~~~/.zshrc(a) export SAGE_KEEP_BUILT_SPKGS="yes" (b) export SAGE_NUM_THREADS=3 (c) export

~~SAGE_ROOT="/Users/$HOME/SageMath"~~SAGE_ROOT="/Users/$HOME/SageMath"~~4.~~Update PATH by editing /etc/paths Note: You’ll need to use

~~SUDO. /Users/<HOME>/SageMath/local/bin~~SUDO./Users/<home>/SageMath/local/bin /usr/local/bin /usr/local/sbin /usr/bin /bin /usr/sbin /sbin

~~/Users/<HOME>/SageMath 5.~~/Users/<home>/SageMath

`cd $SAGE_ROOT &&`

~~./sage -i openssl &&~~~~./sage -f python3 &&~~~~make ssl &&~~~~sage –pip install~~~~jupyterlab~~

when all this is done, **sage -n Jupyterlabjupyterlab**, should work.

6 | No.6 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

`1. download`

~~and~~Sage binaries 2. unpack~~Sage binaries~~- download
3. move
~~the~~SAGE_ROOT~~folder~~to the desired~~location~~ location 4. set

~~the~~SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in~~~/.zshrc~~~/.zshrc (a) export

~~SAGE_KEEP_BUILT_SPKGS="yes"~~SAGE_KEEP_BUILT_SPKGS="yes" (b) export SAGE_NUM_THREADS=3 (c) export~~SAGE_ROOT="/Users/$HOME/SageMath"~~SAGE_ROOT="/Users/$HOME/SageMath" 5. Update

~~PATH~~$PATH by editing /etc/paths Note: You’ll need to use~~SUDO.~~/Users/<home>/SageMath/local/bin SUDO. /Users/philhuffman/SageMath/local/bin /usr/local/bin /usr/local/sbin /usr/bin

~~/bin~~/bin /usr/sbin /sbin~~/Users/<home>/SageMath~~/Users/philhuffman/SageMath 6. cd $SAGE_ROOT &&

~~jupyterlab~~

` `

```
jupyterlab
```

when all this is done, **sage -n jupyterlab**, should work.

7 | No.7 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download Sage binaries
2. unpack download
3. move SAGE_ROOT to the desired location
4. set SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export
```~~SAGE_ROOT="/Users/$HOME/SageMath"
~~SAGE_ROOT="$HOME/SageMath"
5. Update $PATH by editing /etc/paths Note: You’ll need to use SUDO.
/Users/philhuffman/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/philhuffman/SageMath
6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab

when all this is done, **sage -n jupyterlab**, should work.

8 | No.8 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download Sage binaries
2. unpack download
3. move SAGE_ROOT to the desired location
4. set SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export SAGE_ROOT="$HOME/SageMath"
5. Update $PATH by editing /etc/paths Note: You’ll need to use SUDO.
```~~/Users/philhuffman/SageMath/local/bin
~~ <$HOME>/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
~~/Users/philhuffman/SageMath
~~<$HOME>/SageMath
6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab

when all this is done, **sage -n jupyterlab**, should work.

9 | No.9 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download Sage binaries
2. unpack download
3. move SAGE_ROOT to the desired location
4. set SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export SAGE_ROOT="$HOME/SageMath"
5. Update $PATH by editing /etc/paths Note: You’ll need to use SUDO.
<$HOME>/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
<$HOME>/SageMath
6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab
```

when all this is done, **sage -n jupyterlab**, should work.

10 | No.10 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download Sage binaries
2. unpack download
3. move SAGE_ROOT to the desired location
4. set SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export SAGE_ROOT="$HOME/SageMath"
5. Update $PATH by editing /etc/paths Note: You’ll need to use SUDO.
<$HOME>/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
<$HOME>/SageMath
6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage
```~~–pip ~~–pip3 install jupyterlab

when all this is done, **sage -n jupyterlab**, should work.

11 | No.11 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download Sage binaries
2. unpack download
3. move SAGE_ROOT to the desired location
4. set SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export SAGE_ROOT="$HOME/SageMath"
5. Update $PATH by editing /etc/paths Note: You’ll need to use SUDO.
<$HOME>/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
<$HOME>/SageMath
6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip3 install jupyterlab
```

when all this is done, **sage -n jupyterlab**, should work.

**Update**: Avoid updating Python packages using pip. I broke sage in jupyterlab doing this.

12 | No.12 Revision |

If one wants to use Sage in Jupyterlab on macOS Catalina 10.15.1 (19B88), this worked for me:

```
1. download Sage binaries
2. unpack download
3. move SAGE_ROOT to the desired location
4. set SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
(a) export SAGE_KEEP_BUILT_SPKGS="yes"
(b) export SAGE_NUM_THREADS=3
(c) export SAGE_ROOT="$HOME/SageMath"
5. Update $PATH by editing /etc/paths Note: You’ll need to use SUDO.
<$HOME>/SageMath/local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
<$HOME>/SageMath
6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip3 install jupyterlab
```

when all this is done, **sage -n jupyterlab**, should work.

**Update**: Avoid updating Python packages using pip. I broke the sage kernal in jupyterlab doing this.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.