DataJunction / dj

A metrics platform.
http://datajunction.io
MIT License
34 stars 15 forks source link

Generate notebook for exporting/moving nodes #1062

Open shangyian opened 3 months ago

shangyian commented 3 months ago

We can generate a notebook to export multiple nodes with the Python client.

An "export" in this context means that we will generate all of the Python code needed to replicate a particular node:

Export Cube

This functionality will export a cube and all of the nodes in its data graph and dimensions graph into a notebook. The namespaces of all the nodes will be replaceable so that the nodes can be copied to a different namespace.

Export Namespace

This functionality will export all of the nodes in namespace, along with the nodes in each node's data graph and dimensions graph. The namespaces of all the nodes will be replaceable so that the nodes can be copied to a different namespace.