[sage] Fix working jupyterlab
This commit is contained in:
parent
57f530c0a9
commit
2f8ae06aeb
2 changed files with 63 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
description = "Sagemath flake";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils}:
|
||||
|
@ -10,25 +10,15 @@
|
|||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
python-packages = ps: with ps; [
|
||||
jupyterlab
|
||||
jupyterlab-git
|
||||
jupyterlab-lsp
|
||||
jupyterlab-widgets
|
||||
];
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
sage
|
||||
(python311.withPackages python-packages)
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
# sage --nodotsage -n --notebook-dir .
|
||||
# TODO sage --nodotsage -n=jupyterlab --notebook-dir .
|
||||
# exit
|
||||
sage --nodotsage -n=jupyterlab --notebook-dir .
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue