Added Jupyter Notebook support
This commit is contained in:
		
							parent
							
								
									78766dfaa8
								
							
						
					
					
						commit
						5db7d1f93f
					
				
							
								
								
									
										39
									
								
								modules/users/modules/language/jupyter.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								modules/users/modules/language/jupyter.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,39 @@ | ||||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| 
 | ||||
| with lib; | ||||
| let | ||||
|   cfg = config.modules.jupyter; | ||||
| in | ||||
| { | ||||
|   options.modules.jupyter = { | ||||
|     enable = mkEnableOption "jupyter"; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     # Development packages | ||||
|     home.packages = with pkgs; [ ]; | ||||
| 
 | ||||
|     modules.python.extraPythonPackages = p: [ | ||||
|       p.jupyter | ||||
|       p.notebook | ||||
|     ]; | ||||
| 
 | ||||
|     # VSCode configuration | ||||
|     programs.vscode = { | ||||
|       extensions = with pkgs.vscode-extensions; [ | ||||
|         ms-toolsai.jupyter | ||||
|         ms-toolsai.jupyter-renderers | ||||
|       ]; | ||||
| 
 | ||||
|       userSettings = { }; | ||||
|     }; | ||||
| 
 | ||||
|     # Neovim configuration | ||||
|     programs.nixvim = { }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jan-Bulthuis
						Jan-Bulthuis