Code Generation with Nova

Code Generation with Nova

Last updated:

Code Generation with Nova

Nova can generate Python code, create visualizations, and build data analysis scripts through natural language requests.

How It Works

Describe what you want to accomplish, and Nova generates executable code:

@nova Write a Python script that loads my CSV data,
calculates summary statistics, and creates a histogram

Nova generates the code, explains what it does, and can run it on CamberCloud compute resources.

Common Patterns

Data Analysis

@nova Analyze the dataset in stash://myusername/data.csv
Show me correlations between all numeric columns

Visualization

@nova Create a scatter plot of column A vs column B
from my experiment_results.csv file
Color points by the 'category' column

Data Processing

@nova Write code to:
1. Load all CSV files from stash://myusername/raw_data/
2. Merge them on the 'sample_id' column
3. Filter rows where value > 100
4. Save the result to stash://myusername/processed/

Running Generated Code

Nova can execute generated code on CamberCloud compute nodes:

@nova Run this analysis on a SMALL node with GPU

Results and visualizations are saved to your Stash chats/ folder.

Best Practices

  • Be specific about data sources and file paths
  • Specify output formats (CSV, PNG, PDF)
  • Request explanations: “Explain what this code does”
  • Iterate: “Now add error handling” or “Make the plot larger”

Next: Job Management | Best Practices