I can't dynamically select a notebook in a DSS macro + Using Python API to access notebooks fails
I’m trying to create a project macro in DSS 14.2.2 that allows a user to select a notebook from a dropdown and then perform actions on it (e.g., add a code block).
Problems encountered:
- The dropdown appears in the macro UI, but it never shows any options. (I want all projects' notebooks).
- Attempting to use the Python API to access notebooks fails:
project.list_jupyter_notebooks()
project.get_jupyter_notebook("id")
Results in:
AttributeError: 'Project' object has no attribute 'list_jupyter_notebooks' AttributeError: 'Project' object has no attribute 'get_jupyter_notebook'
Dataiku version used: 14.2.2
Dataiku version used: 14.2.2
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023, Circle Member Posts: 2,664 NeuronCan you post your full code snippet? How did you define your project object?