3 sided market example - cadCadFunctions

I’m working through the 3-sided market example here. I run into an issue with trying to import cadCadFunction - the module doesn’t exist. I’m not seeing it anywhere else in the cadCAD git or tutorials, either. Am I missing something?

import libraries

import pandas as pd
import numpy as np
import matplotlib
from tabulate import tabulate
from cadCAD.engine import ExecutionMode, ExecutionContext, Executor
from IPython.display import display
import ipywidgets as widgets
from cadCAD import configs
import cadCadFunctions as c2F
import matplotlib.pyplot as plt

%matplotlib inline

exec_mode = ExecutionMode()

2 Likes

cadCadFunctions is a Python helper script, included in some of the tutorials :slight_smile: Here it is: https://raw.githubusercontent.com/BlockScience/cadCAD-Tutorials/4fe7c1752f283bc7b3658b5b870d0849b1470f18/02%20Reference%20Models/ThreeSidedBasic/cadCadFunctions.py

4 Likes

To add to @BenSchZA’s answer, the easiest way to solve this is probably to clone the whole repo. Downloading the notebook and the .py file and storing them in the same folder locally should also work. @jdeckert let us know if this is what you had done already, in which case we might have missed something.

1 Like