Skip to content

Commit c5c491c

Browse files
author
argonarch
committed
add jupyter
1 parent b791b80 commit c5c491c

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

jupyter/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

jupyter/flake.lock

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jupyter/flake.nix

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
description = "A Nix-flake-based Python development environment";
3+
4+
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
5+
6+
outputs = {
7+
self,
8+
nixpkgs,
9+
}: let
10+
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
11+
forEachSupportedSystem = f:
12+
nixpkgs.lib.genAttrs supportedSystems (system:
13+
f {
14+
pkgs = import nixpkgs {inherit system;};
15+
});
16+
in {
17+
devShells = forEachSupportedSystem ({pkgs}: {
18+
default = pkgs.mkShell {
19+
venvDir = ".venv";
20+
packages = with pkgs;
21+
[python311]
22+
++ (with pkgs.python311Packages; [
23+
pip
24+
venvShellHook
25+
ipykernel
26+
])
27+
++ (with pkgs; [poetry]);
28+
};
29+
});
30+
};
31+
}

jupyter/pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.poetry]
2+
name = "sample-project"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["user <[email protected]>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.11"
10+
11+
12+
[build-system]
13+
requires = ["poetry-core"]
14+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)