This template is for create a new data science project in Python, R, or Julia. It comes with a template conda environment for the Python and R, and a Manifest.toml and Project.toml for Julia. It has Snakemake set up to build books from the scripts using jupytext. It also has a slurm setup. If you're not using slurm, just delete the directory and modify the render file. If you're not using Julia, delete the Manifest.toml and Project.toml files.
- If you're using Python or R, use the conda environment file to create a new environment. Change the name in the file and run:
conda env create -f environment.yml
- If you're using Julia, activate the environment and instantiate the project:
# need to test this command
julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate()'
jupytext script-name.py --to ipynb # or .R, .jl, etc.
jupytext --set-formats ipynb,py:percent script-name.py # or .R, .jl, etc.
jupytext --set-kernel python3 script-name.ipynb # or ir, julia-1.9, etc.