Writers
Using the Writers Tab in Data Science Lab
The Writers tab in a Data Science Lab (DSLab) Notebook allows users to write the output of data science experiments directly to supported databases. This functionality simplifies the process of storing DataFrames or experiment results into persistent storage systems for downstream analytics or pipeline integration.
Steps to Use the Writers Tab
Navigation path: Data Science Lab > Workspace > Writers
1. Prepare the Dataset
Navigate to a code cell containing the dataset details.
Run the code cell to preview the dataset.
2. Access Secrets for Database Credentials
Click the Secrets tab in the right-side panel.
Select the registered database secret keys relevant to your database connection.
Add a new code cell to retrieve the secret values.
Use the checkboxes to select the required secret keys (e.g., username, password, host, port).
3. Configure the Writers
Add another code cell in the notebook.
Open the Writers section from the left-side panel of Workspace.
Select the driver type for your database using the provided checkboxes.
The system will auto-generate the code in the new cell for writing data.
4. Provide Database Details
Populate the required database parameters in the generated code cell:
Username
Password
Host
Port
Database Name
Table Name
DataFrame to be written
5. Execute the Writer Code
Run the code cell with the modified database details.
A message below the code cell will confirm that the DataFrame has been written to the selected database.