Error creating c3.Dataset in notebook


I can create a Dataset from evalMetrcReults in my environment console, but the same process does not work in my notebook when I make this call:
em = c3.ItemFacilityInventoryParams.evalMetrics(spec)
ds = c3.Dataset.fromEvalMetricsResult(result = em)
I get a 400 error and when I click on it says:
required argument missing for function Dataset.fromEvalMetricsResult: result

Same process (evaluating metrics and passing it to a Dataset.fromEvalMetricsResults) works in my console. I am wondering if anyone knows what the problem may be.