Init
This commit is contained in:
		
						commit
						78c9567d71
					
				
					 3 changed files with 199 additions and 0 deletions
				
			
		
							
								
								
									
										149
									
								
								assignment.ipynb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										149
									
								
								assignment.ipynb
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										25
									
								
								flake.lock
									
										
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								flake.lock
									
										
									
										generated
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,25 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "nodes": {
 | 
				
			||||||
 | 
					    "nixpkgs": {
 | 
				
			||||||
 | 
					      "locked": {
 | 
				
			||||||
 | 
					        "lastModified": 1708984720,
 | 
				
			||||||
 | 
					        "narHash": "sha256-gJctErLbXx4QZBBbGp78PxtOOzsDaQ+yw1ylNQBuSUY=",
 | 
				
			||||||
 | 
					        "rev": "13aff9b34cc32e59d35c62ac9356e4a41198a538",
 | 
				
			||||||
 | 
					        "revCount": 588909,
 | 
				
			||||||
 | 
					        "type": "tarball",
 | 
				
			||||||
 | 
					        "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.588909%2Brev-13aff9b34cc32e59d35c62ac9356e4a41198a538/018dec1e-579e-771e-9f64-eb8879874075/source.tar.gz"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "original": {
 | 
				
			||||||
 | 
					        "type": "tarball",
 | 
				
			||||||
 | 
					        "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "root": {
 | 
				
			||||||
 | 
					      "inputs": {
 | 
				
			||||||
 | 
					        "nixpkgs": "nixpkgs"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "root": "root",
 | 
				
			||||||
 | 
					  "version": 7
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										25
									
								
								flake.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								flake.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,25 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  description = "A Nix-flake-based Jupyter development environment";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  outputs = {
 | 
				
			||||||
 | 
					    self,
 | 
				
			||||||
 | 
					    nixpkgs,
 | 
				
			||||||
 | 
					  }: let
 | 
				
			||||||
 | 
					    supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
 | 
				
			||||||
 | 
					    forEachSupportedSystem = f:
 | 
				
			||||||
 | 
					      nixpkgs.lib.genAttrs supportedSystems (system:
 | 
				
			||||||
 | 
					        f {
 | 
				
			||||||
 | 
					          pkgs = import nixpkgs {inherit system;};
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					  in {
 | 
				
			||||||
 | 
					    devShells = forEachSupportedSystem ({pkgs}: {
 | 
				
			||||||
 | 
					      default = pkgs.mkShell {
 | 
				
			||||||
 | 
					        packages = with pkgs;
 | 
				
			||||||
 | 
					          [python311 virtualenv]
 | 
				
			||||||
 | 
					          ++ (with pkgs.python311Packages; [pip requests jupyter pandas numpy matplotlib plotnine]);
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue