The most comprehensive collection of intermediate level cadCAD methodologies on the web. If you're using cadCAD professionally, this is where you pick up the latest tips&tricks.
See https://www.cadcad.education/course/cadcad-hacks
Hack | Description | Link |
---|---|---|
The Graph | How to access blockchain data through The Graph from within cadCAD simulations | cadcad-hack-1-the-graph.ipynb |
Predator-Prey Sandbox Model | How to use the Predator-Prey “Sandbox” Model | cadcad-hack-2-predator-prey-sandbox-model.ipynb |
Plotly Animations | How to create beautifully interactive cadCAD models using Plotly animations | cadcad-hack-3-plotly-animations.ipynb |
Ethereum ETL | How to access Ethereum Smart Contract data through BigQuery and Ethereum-ETL inside cadCAD simulations | cadcad-hack-4-ethereum-etl.ipynb |
Metadata | How to use metadata on cadCAD Partial State Update Blocks | cadcad-hack-5-metadata.ipynb |
Visualization Sliders | How to create beautifully interactive cadCAD models using visualization sliders | cadcad-hack-6-visualization-sliders.ipynb |
Live API Data | How to pull historical and live API data into cadCAD | cadcad-hack-7-live-api-data.ipynb |
For a comprehensive setup tutorial using Anaconda see cadCAD Complete Foundations Bootcamp - Section 2: Environment Setup.
Clone or download the cadCAD Hacks GitHub repo:
Clone
git clone git@github.com:cadCAD-edu/cadCAD-Hacks.git
Download https://github.com/cadCAD-edu/cadCAD-Hacks/archive/refs/heads/main.zip
Create a Python 3 virtual environment inside the Hacks folder:
cd ./cadCAD-Hacks/
python3 -m venv venv
Activate your virtual environment (operating system dependent, works on macOS/Unix OS):
source venv/bin/activate
Install the Python dependencies from requirements.txt file:
python3 -m pip install -r requirements.txt
Within your virtual environment, create a new IPython kernel called python-cadcad-hacks
, which you will select and use in Jupyter:
python3 -m ipykernel install --user --name python-cadcad-hacks --display-name "Python (cadCAD Hacks)"
We recommend using Jupyter Notebook or Jupyter Lab, but you should be able to use any Jupyter notebook viewing software of your choice.
Start your Jupyter Notebook environment using the CLI:
jupyter notebook
Or start Jupyter Notebook using another method of your choice.
Jupyter Lab requires a few additional steps to install Plotly:
jupyter labextension install jupyterlab-plotly@4.14.3
See https://plotly.com/python/getting-started/ for more details.
We gladly accept contributions of bug fixes!
- Create an issue or a PR
- Describe the issue or bug fix, including all relevant context
- Add your name to the
CONTRIBUTORS.md
document along with relevant commits
Mozilla Public License 2.0
See LICENSE