Skip to content

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.

License

Notifications You must be signed in to change notification settings

BenSchZA/cadCAD-Hacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cadCAD Hacks

Python workflow

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

Contents

Season 1

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

Environment Setup

For a comprehensive setup tutorial using Anaconda see cadCAD Complete Foundations Bootcamp - Section 2: Environment Setup.

1. Get the Hacks

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

2. Install Python Dependencies

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

3. Create IPython Kernel

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)"

4. Start Jupyter

We recommend using Jupyter Notebook or Jupyter Lab, but you should be able to use any Jupyter notebook viewing software of your choice.

Jupyter Notebook

Start your Jupyter Notebook environment using the CLI:

jupyter notebook

Or start Jupyter Notebook using another method of your choice.

Jupyter Lab

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.

Contributions

We gladly accept contributions of bug fixes!

  1. Create an issue or a PR
  2. Describe the issue or bug fix, including all relevant context
  3. Add your name to the CONTRIBUTORS.md document along with relevant commits

License

Mozilla Public License 2.0

See LICENSE

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published