Skip to content

Tag: python

Accessing configuration parameters passed to Airflow through CLI

I am trying to pass the following configuration parameters to Airflow CLI while triggering a dag run. Following is the trigger_dag command I am using. My problem is that how can I access the con parameters passed inside an operator in the dag run. Answer This is probably a continuation of the answer provided …

How to put all legend entries on one line?

I can’t seem to find a solution. I have a legend that’s custom (using solution found here) and I’m trying to put multiple entries on one line rather than have each new entry under the previous one. How does one do? I’d like to have “(red marker) The red data, (blue marker) The bl…

Convert python objects to python AST-nodes

I have a need to dump the modified python object back into source. So I try to find something to convert real python object to python ast.Node (to use later in astor lib to dump source) Example of usage I want, Python 2: Please help me to find that some_magic Answer There’s no way to do what you want, b…