# py3.9 **Repository Path**: youngjiandong/py3.9 ## Basic Information - **Project Name**: py3.9 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-02 - **Last Updated**: 2025-12-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Python3.9 ### one/akshare:1.16 - add ta-lib、PyMySQL - shell 运行 `/bin/bash`, 方便一些 - 替换国内源 `sed -i 's@deb.debian.org@repo.huaweicloud.com@g' /etc/apt/sources.list` - bookworm 版本:`sed -i 's@deb.debian.org@repo.huaweicloud.com@g' /etc/apt/sources.list.d/debian.sources` ### 运行前准备 ``` mkdir myApp chmod -R 777 myApp cd myApp chmod 777 run_jupyter.sh cd .. mkdir vscode-server chmod 777 vscode-server ``` ### 09.23 - add nocas, config pg database - 参考 pg/README.md - 暂时找不到原因,nacos 连接pg 数据库只能用 nacos 用户 - `http://192.168.2.250:8848/nacos` user: nacos/nacos ### 07.14 - [dask](https://www.dask.org/) Parallel computing with task scheduling, 并行计算框架,轻量级 spark ### 06.26 - 挂载抖音下载,myApp/douyin-downloader ### 05.20 - add supervisor - sshd - use `ssh -p 8822 root@192.168.2.250`, vscode remote 可以进行远程开发 ``` mkdir vscode-server chmod 777 vscode-server ``` - jupyterlab ``` cd myApp chmod 777 run_jupyter.sh ``` - Rust - [参考](https://tooldiy.ry.rs/one_click_deployment/docker_os_rust/) ``` WORKDIR /root # 安装 rust ARG RUST_VERSION=nightly ENV RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static ENV RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup RUN mkdir .cargo && \ echo '[source.crates-io]' >> .cargo/config && \ echo 'registry = "https://github.com/rust-lang/crates.io-index"' >> .cargo/config && \ echo 'replace-with = "ustc"' >> .cargo/config && \ echo '[source.ustc]' >> .cargo/config && \ echo 'registry = "git://mirrors.ustc.edu.cn/crates.io-index"' >> .cargo/config && \ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init && \ chmod +x rustup-init && \ ./rustup-init -y --default-toolchain ${RUST_VERSION} --target riscv64imac-unknown-none-elf && \ rm rustup-init && \ source $HOME/.cargo/env && \ cargo install cargo-binutils && \ rustup component add llvm-tools-preview && \ rustup component add rust-src ``` ### 05.14 - jupyter extension 检查 ``` jupyter labextension list ``` - jupyter 支持加载修改的 module 文件 ``` # 设置为自动重新加载所有模块(每次执行代码时检查更新) %load_ext autoreload %autoreload 2 ``` - for editor file, install pyright, `npm install --save-dev pyright` - sqlacodegen Python 版数据库后台表多数据库支持模型后台表生成 - use myApp as work dir ``` mkdir myApp chmod -R 777 myApp ``` - add node - 查看 jupyter,`jupyter --version` ### 05.13 - jupyterlab 设置密码 - [参考](https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html) ### 05.12 - matplotlib 字体,查看配置文件 matplotlibrc ``` import matplotlib print(matplotlib.get_data_path()) ``` ### 2025.05.09 - add ta-lib - 或者直接使用 `docker run -it -p 8888:8888 --name akdocker -v /c/home:/home registry.cn-shanghai.aliyuncs.com/akfamily/aktools:jupyter jupyter-lab --allow-root --no-browser --ip=0.0.0.0` - 有点老,自己重新构建 - add stock-docker, use akshare - add mysql ### 2024.12.02 - add polars - v3.9 from `python:3.9-buster` - `run.sh` - in container, run `run_jupyter.sh` - 配合 vscode 访问 jupyter,启动命令增加 token,`--NotebookApp.token=x` - access `http://192.168.2.250:8888/jub/lab`, token is x