Using dataiku.dku_flow_variables in Version 9

PARTEEK
PARTEEK Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 24 ✭✭✭✭

I am using version 9 of dataiku and it says dku_flow_variable is not available. How do I access partition labels in dataiku V9?

Tagged:

Answers

  • NN
    NN Neuron, Registered, Neuron 2022, Neuron 2023, Circle Member Posts: 150 Neuron
    edited July 2024

    Hi,

    I am on V9 and the below does work for me in the python recipe
    assuming mydate is the name of the parition

    If your case is different then please share some details so that the community can help.

    partid=dataiku.dku_flow_variables["DKU_DST_MYDATE"]

    https://doc.dataiku.com/dss/latest/partitions/variables.html#python

  • PARTEEK
    PARTEEK Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 24 ✭✭✭✭

    I found the error. It works in script but not in notebook.

  • NN
    NN Neuron, Registered, Neuron 2022, Neuron 2023, Circle Member Posts: 150 Neuron

    Yes that is correct.
    Partitions only work in a flow.
    Hence the variable will only be available to recipes that are run in the flow and will not work on notebook.

Setup Info
    Tags
      Help me…