Accessing Plugin Config from Notebook/Webapp
How can I access the parameter values of a plugin recipe from within my notebook?
Additionally, can I write these parameters to my project level variables from within the plugin code?
Best Answer
-
Hi again,
Regarding your first question:
Accessing parameter values of a plugin recipe from a notebook is not possible as these are two different environments. If you want to develop the plugin in a notebook, you will need to replicate the plugin parameter logic.
Note that there are several ways to develop plugins, as I highlighted in my previous answer: https://community.dataiku.com/t5/Plugins-Extending-Dataiku-DSS/Plugin-Development-in-Jupyter/m-p/5435#M205. In your case, you may also consider our IDE integrations, such as VSCode.
As for your second question, it is possible through our API (https://doc.dataiku.com/dss/latest/python-api/rest-api-client/projects.html#dataikuapi.dss.project.DSSProject.update_variables). This can be another way to help you develop your plugin. I wouldn't recommend doing that after you share the plugin to users since it could introduce conflicts if multiple people use it at the same time.
Hope it helps,
Alex