jupyter works through uv command in devenv shell
This commit is contained in:
27
flake.nix
27
flake.nix
@@ -72,6 +72,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
# https://devenv.sh/guides/using-with-flakes/#the-flakenix-file
|
||||
packages.${systemSettings.system} = {
|
||||
devenv-up = self.devShells.${systemSettings.system}.default.config.procfileScript;
|
||||
devenv-test = self.devShells.${systemSettings.system}.default.config.test;
|
||||
@@ -87,16 +88,19 @@
|
||||
({ pkgs, config, ... }: {
|
||||
# This is your devenv configuration
|
||||
|
||||
# https://devenv.sh/reference/options/#pre-commithooks
|
||||
pre-commit.hooks = {
|
||||
end-of-file-fixer.enable = true;
|
||||
trim-trailing-whitespace.enable = true;
|
||||
};
|
||||
|
||||
# https://devenv.sh/supported-languages/python/
|
||||
languages.python = {
|
||||
enable = true;
|
||||
version = systemSettings.pythonVersion;
|
||||
uv = {
|
||||
enable = true;
|
||||
package = pkgs.uv;
|
||||
sync = {
|
||||
enable = true;
|
||||
allExtras = true;
|
||||
@@ -107,20 +111,19 @@
|
||||
|
||||
packages = with pkgs; [
|
||||
git
|
||||
# (writeShellScriptBin "full-build" ''
|
||||
# cd ${adPath}
|
||||
# ${pkgs.uv}/bin/uv build --wheel
|
||||
# docker build -t acockburn/appdaemon:local-dev ${adPath}
|
||||
# '')
|
||||
# (pkgs.python312.withPackages (python-pkgs: with python-pkgs; [
|
||||
# pip
|
||||
# setuptools
|
||||
# wheel
|
||||
# ipykernel
|
||||
# rich
|
||||
# ]))
|
||||
(pkgs.python312.withPackages (python-pkgs: with python-pkgs; [
|
||||
pip
|
||||
setuptools
|
||||
wheel
|
||||
notebook
|
||||
rich
|
||||
]))
|
||||
];
|
||||
|
||||
processes = {
|
||||
my-jup.exec = "uv run jupyter notebook";
|
||||
};
|
||||
|
||||
enterShell = ''
|
||||
alias appdaemon="${pkgs.uv}/bin/uv run --frozen python -m appdaemon"
|
||||
alias ad="appdaemon"
|
||||
|
||||
Reference in New Issue
Block a user