Python Data Science
@codify/python-data-scientist·Codify official·v1.0.0·Updated yesterday
Open a notebook and start analyzing data. Python, Jupyter and the usual data science libraries are ready, with VS Code set up for notebooks.
0 appliesmacOS · Linux
Apply with CodifyCustomize a copy
Opens the template in the Codify dashboard. Applying doesn't create a setup; customizing makes a private copy you can edit.
Or from your terminal, with the Codify CLI
codify apply @codify/python-data-scientistConfiguration
The exact file codify apply uses. Copy it into your own codify.jsonc, or download it.
codify.jsonc180 lines · 5 KB
[ // ### 🐍 Python Data Science — Quickstart Guide // // After running **codify apply**, here's how to hit the ground running: // // **1. Create a project & activate your environment** // ```bash // mkdir -p ~/projects/my-analysis && cd $_ // dsenv # creates & activates .venv with Python 3.12 // ``` // The `dsenv` alias runs `. .venv/bin/activate`. // // **2. Start coding in VS Code** // ```bash // code . # opens the project — Python & Jupyter extensions pre-installed // ``` // The `.venv` is auto-detected as the interpreter. Hit `Cmd+Shift+P` → "Jupyter: Create New Blank Notebook" to start. // // **3. Launch Jupyter in your browser (no VS Code needed)** // ```bash // dsnotebook # starts notebook server on port 8888 // dslab # starts Jupyter Lab on port 8888 // ``` // // **4. Check that the core stack works** // ```python // python -c " // import numpy as np // import pandas as pd // import matplotlib.pyplot as plt // import seaborn as sns // import sklearn // print('✅ All set!') // " // ``` // // **5. Switch Python versions (if needed)** // ```bash // pyenv versions # list installed versions (3.11, 3.12) // pyenv global 3.11 # switch default to 3.11 // ``` // // ### What's installed // | Category | Tools | // |----------|-------| // | **Runtimes** | Python 3.12 (default), 3.11 via pyenv | // | **Data wrangling** | numpy, pandas, scipy | // | **Visualization** | matplotlib, seaborn, plotly | // | **ML** | scikit-learn, statsmodels | // | **Notebooks** | jupyter, ipykernel, nbformat | // | **Editor** | VS Code + Python/Jupyter extensions | // | **CLI tools** | wget, jq, ripgrep, tree | { "type": "homebrew", "formulae": [ "git", // Version control "wget", // Download datasets from CLI "jq", // Slice & dice JSON data "tree", // Visualize directory structures "ripgrep" // Fast text search in datasets ], "casks": [ "sublime-text", // Quick file editing ], "os": ["macOS"] }, { "type": "apt", "install": [ "git", "wget", "jq", "tree", "ripgrep", "build-essential", // Required for compiling Python extensions & pyenv "python3-venv" // System venv support ], "os": ["linux"], "distro": ["debian-based"] }, { "type": "snap", "install": [ {"name": "sublime-text", "classic": true}, // Quick file editing ], "os": ["linux"], "distro": ["debian-based"] }, { "type": "pyenv", "pythonVersions": ["3.12", "3.11"], "global": "3.12", "os": ["macOS", "linux"] }, { "type": "virtualenv", "os": ["macOS", "linux"] }, { "type": "pip", "name": "data-science", "install": [ // The Big Four "numpy", // Numerical arrays & linear algebra "pandas", // Data wrangling "matplotlib", // Publication-quality plotting "seaborn", // Statistical visualizations // Scientific Computing "scipy", // Advanced math, stats, signal processing "statsmodels", // Statistical modeling // Machine Learning "scikit-learn", // The go-to ML library // Interactive Visualization "plotly", // Web-ready interactive charts // Jupyter Ecosystem "jupyter", // Notebook server "ipykernel", // Python kernel for VS Code & Jupyter "nbformat", // Programmatic notebook manipulation // Productivity "black", // Auto-formatter "pytest", // Testing for data pipelines ], "dependsOn": ["pyenv", "virtualenv"], "os": ["macOS", "linux"] }, { "type": "vscode", "extensions": [ // Python & Jupyter "ms-python.python", "ms-python.vscode-pylance", "ms-toolsai.jupyter", "ms-toolsai.jupyter-keymap", "ms-toolsai.jupyter-renderers", "ms-toolsai.vscode-jupyter-cell-tags", "ms-toolsai.vscode-jupyter-slideshow", // Productivity "eamodio.gitlens", // Git blame in notebooks "mechatroner.rainbow-csv", // Color-coded CSV columns ], "settings": { "editor.fontSize": 14, "editor.formatOnSave": true, "editor.renderWhitespace": "all", "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", "jupyter.askForKernelRestart": false, "notebook.lineNumbers": "on", "notebook.cellToolbarLocation": { "default": "right" }, "files.exclude": { "**/__pycache__": true, "**/.ipynb_checkpoints": true } }, "os": ["macOS", "linux"] }, { "type": "alias", "alias": "dsnotebook", "value": "jupyter notebook --port=8888 --no-browser", "os": ["macOS", "linux"] }, { "type": "alias", "alias": "dslab", "value": "jupyter lab --port=8888 --no-browser", "os": ["macOS", "linux"] }, { "type": "alias", "alias": "dsenv", "value": ". .venv/bin/activate", "os": ["macOS", "linux"] }]