1
Fork 0

Add tabulate to jupyter

This commit is contained in:
prescientmoon 2024-05-22 14:04:20 +02:00
parent 3586a5b2b8
commit ca1606a6a3
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 25 additions and 10 deletions

View file

@ -15,7 +15,6 @@ in
services.forgejo = {
enable = true;
appName = "moonforge";
stateDir = "/persist/state/var/lib/forgejo";
mailerPasswordFile = config.sops.secrets.forgejo_mail_password.path;
@ -28,7 +27,8 @@ in
# See [the cheatsheet](https://docs.gitea.com/next/administration/config-cheat-sheet)
settings = {
session.COOKIE_SECURE = true;
default.APP_NAME = "moonforge";
server = {
DOMAIN = host;
HTTP_PORT = port;
@ -38,6 +38,7 @@ in
cron.ENABLED = true;
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
mailer = {
ENABLED = true;

View file

@ -1,11 +1,24 @@
{ config, pkgs, ... }:
# {{{ Jupyterhub/lab env
let appEnv = pkgs.python3.withPackages (p: with p; [
{ config, lib, pkgs, ... }:
let
# {{{ Jupyterhub/lab env
appEnv = pkgs.python3.withPackages (p: with p; [
jupyterhub
jupyterlab
jupyterhub-systemdspawner
jupyter-collaboration
]);
]);
# }}}
# {{{ Client wrapper
deps = [ ];
wrappedAppEnv = pkgs.symlinkJoin {
inherit (appEnv) name meta;
paths = [ appEnv ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/* \
--prefix PATH : ${lib.makeBinPath deps}
'';
};
# }}}
in
{
@ -33,6 +46,7 @@ in
numpy
scipy
matplotlib
tabulate
]));
in
{