From 75e0ad6954669f7ea81732d2e170ebcdde65a0c2 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 28 Dec 2024 17:59:33 +0100 Subject: [PATCH] docs(sage): Add how to run --- notebook/sagemath/flake.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/notebook/sagemath/flake.nix b/notebook/sagemath/flake.nix index a00a43f..b14df7b 100644 --- a/notebook/sagemath/flake.nix +++ b/notebook/sagemath/flake.nix @@ -1,5 +1,15 @@ { - description = "Sagemath flake"; + description = '' + Sagemath flake + + You'll want to run the flake with the following command: + + $ sage --nodotsage -n=jupyterlab --notebook-dir /path/to/notebooks + + For example: + + $ sage --nodotsage -n=jupyterlab --notebook-dir . + ''; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url = "github:numtide/flake-utils"; @@ -14,12 +24,8 @@ in { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ - sage + sageWithDoc ]; - - shellHook = '' - sage --nodotsage -n=jupyterlab --notebook-dir . - ''; }; } );