Skip to main content

Overview

SyneHQ’s Jupyter SQL Extension brings secure, unified, and credential-free database access to your Jupyter environment. All connections and permissions are managed by SyneHQ’s platform, making analytics and data science simpler, safer, and faster.
  • Zero-Credential Data Access: No manual credential handling or connection strings.
  • Unified Platform Integration: All available SyneHQ data sources accessible via magic commands.
  • Enterprise-Grade Security: RBAC, SSO, audit logging, and query validation.
  • Rich Output Support: Pandas DataFrames, HTML tables, JSON, and custom charting.

Feature Highlights

🔐 Secure Connection Management

  • All connections managed by SyneHQ’s API and internal services.
  • Credential-free, enterprise authentication (SSO/OAuth supported).
  • Automatic connection pooling, retries, and failover.

🛡️ Security and Validation

  • Advanced SQL injection prevention, dangerous operation detection.
  • Queries fully audited and validated.
  • Fine-grained access controls match SyneHQ platform RBAC.

📊 Rich Output Formatting

  • Results as Pandas DataFrames (default).
  • HTML tables with sorting/filtering; ideal for reports.
  • JSON output for API and automation workflows.
  • Easy chart and visualization integration.

🔄 Advanced Query Features

  • Python variable substitution with intuitive, safe syntax.
  • Evaluate expressions, lists, and functions within SQL.
  • Named result assignment and direct variable usage.
  • Support for async execution and smart query caching.

📈 Performance and Monitoring

  • Query execution metrics and optimization guidance.
  • Connection health checks, retries, and robust error recovery.

Quick Start

  1. Install the extension
  2. Load the extension in Jupyter
  3. Connect and query

Using Python Variables

Parameterize your queries safely and expressively:
Supported substitution for:
  • Strings, numbers, lists/tuples, booleans, None (as SQL NULL), datetime objects, safe Python expressions.
Expression evaluation is sandboxed; dangerous patterns (import, eval, os, etc.) are blocked.

Output Formats

Assign result to a variable for downstream analysis/plotting:

Connection Management

List all available SyneHQ connections:
Test a connection:

Error Handling & Troubleshooting

  • Human-readable exception messages: connection errors, invalid SQL, permission issues.
  • All errors are logged with audit trails in SyneHQ.
  • Enable debug mode for verbose logs:
Common issues:
  • Extension not loading: %load_ext syne_sql_extension (confirm installation)
  • Permissions error: Confirm access in SyneHQ admin UI.
  • Network issues: Ensure connectivity to SyneHQ APIs.

Security

  • All queries validated/sanitized before submission.
  • No secrets or credentials ever present in Python code or notebooks.
  • Queries, errors, and outputs are fully audited via SyneHQ.
Blocked dangerous queries, e.g.:
Safe queries use parameter binding:

Advanced Usage

Async and cached queries:
Example: Assign results, plot, and visualize:

Support and Contributions


Made with ❤️ by the SyneHQ team
Secure, seamless analytics for every data scientist.