Customise code recipe defaults

jmccartin
jmccartin Registered Posts: 19 ✭✭✭✭
Forgive me if this question has already been raised, but I couldn't find anything here or in your documentation.

Is there a way to change the boilerplate code when creating a Python or PySpark recipe? There are a few things that are needed in the PySpark recipe in order to get Python3 to work on spark clusters (specifically relating to environment variables). The Python recipes currently don't abide by PEP8 (multiple imports on one line) and are not done alphabetically (minor complaint). I also wouldn't mind importing various packages to keep consistency across projects. This is rather helpful when trying to improve coding standards across data science teams.
Tagged:

Answers

  • Clément_Stenac
    Clément_Stenac Dataiker, Dataiku DSS Core Designer, Registered, Moderator Posts: 754 Dataiker
    Hi,

    This is not possible but is currently in our backlog
  • jmccartin
    jmccartin Registered Posts: 19 ✭✭✭✭
    Would it be possible through a plugin?

    And is there a way I could track this issue, to be notified of any changes in the future?
  • AdrienL
    AdrienL Dataiker, Alpha Tester Posts: 196 Dataiker
    Additionally, you can add code samples (snippets) from the top-right corner of the code recipe editor.
Setup Info
    Tags
      Help me…