# Are UI Color Ramps Possible through Python

I looked around in the source and other places and I found the code that creates a Color Ramp is as follows:

layout.template_color_ramp(tex, "color_ramp", expand=True)


Does this work for addons because I can't find any documentation or anything on it and whenever I try it doesn't draw in the panel.

I would like to use this in-panel ramp to control a color ramp that is in the Node Editor.

cr_node = bpy.data.materials['Material'].node_tree.nodes['ColorRamp']