Survey banner
The Dataiku Community is moving to a new home! We are temporary in read only mode: LEARN MORE

How to Create a Code Sample through the Dataiku API or Python Client?

Suhail
Level 3
How to Create a Code Sample through the Dataiku API or Python Client?

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:

  1. What are the relevant methods or functions for creating code samples programmatically.
  2. Any sample code or code snippets that demonstrate the process.

Thank you in advance for your help and support.


Operating system used: Mac OS

3 Replies
Turribeach

Which code samples would you like to change? 

0 Kudos
Suhail
Level 3
Author

The code samples that we see in Jupyter notebooks and code recipes

attaching a screen shot for reference  

0 Kudos
Turribeach

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/

0 Kudos

Labels

?
Labels (2)

Setup info

?
A banner prompting to get Dataiku