How to Create a Code Sample through the Dataiku API or Python Client?
![Suhail](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar10.png)
Hello Dataiku Community!
I hope you're all doing well. I'm trying to figure out how to create a custom code sample through the Dataiku API or the Python client.
To provide a bit more context, I want to automate the process of generating and updating the code samples on Dataiku and I believe using the API or the Python client might be the way to go.
However, I'm not sure where to start or which endpoints/functions to use.
If any of you have experience with this or can point me in the right direction, I would greatly appreciate your guidance. Specifically, I'm looking for information on:
- What are the relevant methods or functions for creating code samples programmatically.
- Any sample code or code snippets that demonstrate the process.
Thank you in advance for your help and support.
Operating system used: Mac OS
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 1,876 Neuron
Which code samples would you like to change?
-
The code samples that we see in Jupyter notebooks and code recipes
attaching a screen shot for reference
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 1,876 Neuron
As I said I don't believe these can be modified via the API but they can be copied across environments. They are stored under DATA_DIR/config/code-snippets/