<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by YASH MEHTA on Medium]]></title>
        <description><![CDATA[Stories by YASH MEHTA on Medium]]></description>
        <link>https://medium.com/@ysmvjpnvs?source=rss-b2352308dbe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7ca6KwiD_C7PcK2W.jpg</url>
            <title>Stories by YASH MEHTA on Medium</title>
            <link>https://medium.com/@ysmvjpnvs?source=rss-b2352308dbe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:29:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ysmvjpnvs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Developing Custom Plugins in Dataiku: A Practical Guide]]></title>
            <link>https://medium.com/@ysmvjpnvs/developing-custom-plugins-in-dataiku-a-practical-guide-2cc13cc4cd40?source=rss-b2352308dbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc13cc4cd40</guid>
            <dc:creator><![CDATA[YASH MEHTA]]></dc:creator>
            <pubDate>Thu, 22 May 2025 07:39:09 GMT</pubDate>
            <atom:updated>2025-05-22T07:40:42.603Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, the ability to extend and customize your data platform can make all the difference. <strong>Dataiku</strong>, with its collaborative data science environment, allows users to build workflows visually or programmatically. But what if the built-in features aren’t enough?</p><p>That’s where <strong>plugins</strong> come in.</p><p>In this post, we’ll walk through the basics of <strong>Dataiku plugin development</strong> — why you’d build one, how to get started, and key tips for success.</p><h3>🧩 Why Build a Plugin?</h3><p>Plugins in Dataiku allow you to:</p><ul><li>Extend functionality with <strong>custom Python or R code</strong>.</li><li>Create <strong>custom recipes</strong> that run complex logic beyond visual recipes.</li><li>Integrate with external APIs, services, or libraries.</li><li>Package and share reusable components with your team.</li></ul><p>Plugins are especially useful when you find yourself repeating the same script or pipeline step across multiple projects.</p><h3>⚙️ Plugin Architecture 101</h3><p>A Dataiku plugin is a structured folder that contains:</p><ul><li>plugin.json – The metadata/config file for your plugin.</li><li>python-lib/ – Custom Python modules available to recipes.</li><li>recipes/ – Definitions of custom recipes.</li><li>resources/ – Static files (icons, HTML templates, etc.).</li><li>code-recipes/ – Custom logic for Python/R recipes.</li></ul><h3>🛠️ Setting Up Your First Plugin</h3><p>Dataiku provides a built-in plugin editor that you can use directly within the UI:</p><ol><li><strong>Go to the Plugin page</strong> (Admin &gt; Plugins).</li><li>Click <strong>Create Plugin</strong> &gt; Choose “Code Plugin”.</li><li>Give it a name like custom-data-cleaner.</li></ol><p>Once created, you can edit the plugin files in your browser or clone them locally using <strong>Dataiku DSS API</strong> and a Git client.</p><h3>🔁 Example: Building a Custom Recipe</h3><p>Let’s say you want a recipe that removes null values and standardizes column names.</p><h3>1. Define Your Recipe (recipes/remove_nulls/recipe.json)</h3><pre>{<br> &quot;meta&quot;: {<br> &quot;label&quot;: &quot;Remove Nulls and Clean Headers&quot;,<br> &quot;description&quot;: &quot;Cleans data by dropping nulls and standardizing headers&quot;<br> },<br> &quot;params&quot;: [],<br> &quot;inputRoles&quot;: [<br> {&quot;name&quot;: &quot;input_dataset&quot;, &quot;label&quot;: &quot;Input Dataset&quot;, &quot;arity&quot;: &quot;EXACTLY_ONE&quot;, &quot;required&quot;: true}<br> ],<br> &quot;outputRoles&quot;: [<br> {&quot;name&quot;: &quot;output_dataset&quot;, &quot;label&quot;: &quot;Output Dataset&quot;, &quot;arity&quot;: &quot;EXACTLY_ONE&quot;}<br> ]<br>}</pre><h3><strong>2. Write Logic (</strong><strong>recipes/remove_nulls/python/recipe.py)</strong></h3><pre>from dataiku.customrecipe import get_input_names_for_role, get_output_names_for_role<br>import dataiku<br>import pandas as pd<br><br>input_name = get_input_names_for_role(&quot;input_dataset&quot;)[0]<br>output_name = get_output_names_for_role(&quot;output_dataset&quot;)[0]<br><br>input_dataset = dataiku.Dataset(input_name)<br>output_dataset = dataiku.Dataset(output_name)<br><br>df = input_dataset.get_dataframe()<br>df.dropna(inplace=True)<br>df.columns = [col.strip().lower().replace(&quot; &quot;, &quot;_&quot;) for col in df.columns]<br><br>output_dataset.write_with_schema(df)</pre><h3>🧪 Testing Your Plugin</h3><p>Plugins can be tested directly in a <strong>Dataiku project</strong>:</p><ul><li>Add the plugin recipe to a flow.</li><li>Link datasets.</li><li>Run and validate the results.</li></ul><p>Use logs and the <strong>“Logs &amp; Profile”</strong> tab to debug.</p><h3>🚚 Sharing and Publishing</h3><p>Once your plugin works:</p><ul><li><strong>Share it with your team</strong> via the internal plugin store.</li><li><strong>Publish to the Dataiku Plugin Store</strong> (after review by the Dataiku team).</li><li>Use <strong>Git integration</strong> to manage versions and collaborate.</li></ul><h3>⚠️ Common Pitfalls</h3><ul><li><strong>Incorrect input/output schema assumptions</strong> — Always validate input data shapes.</li><li><strong>Hardcoding column names or types</strong> — Use parameters and flexible code.</li><li><strong>Forgetting error handling</strong> — Use try-except blocks and log messages clearly.</li><li><strong>Performance issues on large datasets</strong> — Use chunked reading/writing or Spark recipes.</li></ul><h3>🎯 Final Thoughts</h3><p>Plugins in Dataiku are an incredibly powerful way to build reusable, scalable, and consistent components for your data science workflows. Once you get the hang of it, you’ll wonder how you ever lived without them.</p><p>So go ahead — build your first plugin. Your future self (and your team) will thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc13cc4cd40" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>