Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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
  4. 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"
  5. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab
  6. sage -n jupyterlab

when all this is done, try sage -n Jupyterlab

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
  4. 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"
  5. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab
  6. sage -n jupyterlab

when all this is done, try sage -n Jupyterlab

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

  1. 1. download and unpack Sage binaries
  2. binaries 2. move the SAGE_ROOT folder to the desired location
  3. location 3. set the SAGE_ROOT and any other environment variables (e.g. SAGE_KEEP_BUILT_SPKGS) in ~/.zshrc
  4. ~/.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"
  5. /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

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.

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

1. 
  1. download and unpack Sage binaries 2. binaries
  2. move the SAGE_ROOT folder to the desired location 3. 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" SAGE_ROOT="/Users/$HOME/SageMath"

  4. 4.
  5. 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

  6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab

jupyterlab

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

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

  1. 1. download and Sage binaries
    2. unpack Sage binaries
  2. download 3. move the SAGE_ROOT folder to the desired location
  3. 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"

  4. 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

  5. /Users/philhuffman/SageMath 6. cd $SAGE_ROOT && ./sage -i openssl && ./sage -f python3 && make ssl && sage –pip install jupyterlab

jupyterlab

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

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.

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.

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.

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.

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.

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.