Create a parallel profile
ipython profile create --parallel --profile=slurm
cd into ~/.ipython/profile_slurm/
| //@version=4 | |
| study(title="CTO Line", shorttitle="CTO", overlay=true, resolution="") | |
| smma(src, length) => | |
| smma = 0.0 | |
| smma := na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length | |
| smma | |
| v1 = smma(hl2, 15) | |
| m1 = smma(hl2, 19) | |
| m2 = smma(hl2, 25) | |
| v2 = smma(hl2, 29) |
| blueprint: | |
| name: ZHA – IKEA STYRBAR all controls & 6-temp palette (modern syntax) | |
| description: > | |
| Smooth, responsive control for the IKEA STYRBAR (square) remote on ZHA. | |
| • UP/DOWN (short): ON / OFF | |
| • UP/DOWN (hold): fast and smooth brightness stepping that stops immediately on release | |
| (implemented with `mode: restart` for zero run-on) | |
| • LEFT/RIGHT (short): cycle through 6 preset color temperatures (wrap-around; uses an input_number helper to track index) | |
| • LEFT/RIGHT (hold): smooth color temperature stepping that stops immediately on release |
| #!/usr/bin/env bash | |
| # slurm-vscode.sh - VS Code launcher for Slurm | |
| # - Reads ~/.config/slurm_vscode/config (or $XDG_CONFIG_HOME) | |
| # - Remembers JobID in ~/.cache/slurm_vscode/jobid (or $XDG_CACHE_HOME) | |
| # - Reuses a running job if possible; otherwise submits a tiny "sleep infinity" holder job | |
| # - Launches local VS Code against the remote node via "ssh-remote+<node>" | |
| set -euo pipefail | |
| APP_NAME="slurm_vscode" |
| background-image: "center / cover no-repeat fixed url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAAqACAAQAAAABAAAMiKADAAQAAAABAAAMiAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/+IH6ElDQ19QUk9GSUxFAAEBAAAH2GFwcGwCIAAAbW50clJHQiBYWVogB9kAAgAZAAsAGgALYWNzcEFQUEwAAAAAYXBwbAAAAAAAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1hcHBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALZGVzYwAAAQgAAABvZHNjbQAAAXgAAAWcY3BydAAABxQAAAA4d3RwdAAAB0wAAAAUclhZWgAAB2AAAAAUZ1hZWgAAB3QAAAAUYlhZWgAAB4gAAAAUclRSQwAAB5wAAAAOY2hhZAAAB6wAAAAsYlRSQwAAB5wAAAAOZ1RSQwAAB5wAAAAOZGVzYwAAAAAAAAAUR2VuZXJpYyBSR0IgUHJvZmlsZQAAAAAAAAAAAAAAFEdlbmVyaWMgUkdCIFByb2ZpbGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG1sdWMAAAAAAAAAHwAAAAxza1NLAAAAKAAAAYRkYURLAAAALgAAAaxjYUVTAAAAJAAAAdp2aVZOAAAAJAAAAf5wdEJSAAAAJgAAAiJ1a1VBAAAAKgAAAkhmckZVAAAAKAAAAnJodUhVAAAAKAAAApp6aFRXAAAAFgAAAsJuYk5PAAAAJgAAAthjc0NaAAAAIgAAAv5oZUlMAAAAHgAAA |
| #!/bin/bash | |
| # filepath: fix_lib_paths.sh | |
| # https://github.com/conda-forge/numpy-feedstock/issues/347#issuecomment-2746317575 | |
| # Activate the conda environment and run this script. | |
| set -e | |
| LIB_PATH="$CONDA_PREFIX/lib" | |
| # Find all dylib files |
Set a host file.
| # /// script | |
| # dependencies = [ | |
| # "yfinance", | |
| # ] | |
| # /// | |
| import yfinance as yf | |
| from datetime import datetime, date | |
| import argparse | |
| import pandas as pd |
| import asyncio | |
| import json | |
| import os | |
| from rattler import ( | |
| Environment, | |
| LockFile, | |
| Platform, | |
| VirtualPackage, | |
| solve_with_sparse_repodata, | |
| ) |
| digraph { | |
| graph [bb="0,0,783.73,403", | |
| rankdir=LR | |
| ]; | |
| node [label="\N", | |
| shape=rectangle | |
| ]; | |
| subgraph cluster_legend { | |
| graph [bb="8,312,775.73,395", | |
| color=black, |