Submit your innovative use case or inspiring success story to the 2023 Dataiku Frontrunner Awards! LET'S GO

Variables in Jupyter Notebook

Level 2
Variables in Jupyter Notebook

Can I reference variables in Jupyter Notebook?

As per documentation:

import dataiku

print "I am excluding %s" % (dataiku.dku_custom_variables["logs.preprocessing.excluded_ip"])

However error:

AttributeError Traceback (most recent call last)
<ipython-input-22-dbdbbfa76906> in <module>()
1 import dataiku
----> 2 print "I am excluding %s" % (dataiku.dku_custom_variables["logs.preprocessing.excluded_ip"])

AttributeError: 'module' object has no attribute 'dku_custom_variables'

0 Kudos
1 Reply

That is indeed not yet available in DSS 2.1 but will be available in DSS 2.2 (released in November)
0 Kudos