


Datalayer for Visual Studio Code
🚀 Transform VS Code into a collaborative data science platform with seamless local-to-cloud scaling and rich document creation in just 2 clicks.
💻 Execute notebooks on cloud compute, 📝 create beautiful reports with Notion-like collaborative documents, and 🔄 switch effortlessly between local and remote environments - all within your familiar VS Code interface.
See it in action:
🚀 Key Benefits
⚡ Instant Cloud Scaling
- Zero-setup cloud execution - Run workloads on cloud CPUs or GPUs without any local Python installation
- 2-click scaling - Switch from local development to cloud compute instantly via the kernel picker
- Smart resource management - Automatic runtime creation and reuse to optimize compute costs
📝 Collaborative Rich Documents
- Notion-like documents with rich formatting - Create beautiful reports with headings, lists, images, tables, executable code blocks, etc.
- Real-time collaboration - Multiple users can edit documents simultaneously with live updates
- Mixed content support - Seamlessly combine executable code, images, text, and more in a single document
🔀 Ultimate Flexibility
- Seamless local ↔ cloud switching - Start locally, scale to cloud, then return to local development
- Multiple runtime support - Connect to Datalayer cloud, local Python, or existing Jupyter servers
- Code preservation - Your code runs identically across local and cloud environments
- Hybrid workflows - Use the best of both worlds without vendor lock-in
⚡ Quick Start
- Create a free account at datalayer.app and get an access token from your account settings.
- Install from VS Code Marketplace
- Login:
Ctrl+Shift+P → "Datalayer: Login to Datalayer" → paste your token
- Scale instantly: Open any
.ipynb file with the Datalayer Editor → click kernel picker → select cloud runtime
- Create rich docs: Create
.lexical files for Notion-like collaborative reports with code, images and rich formatting
🎯 Core Features
📊 Advanced Document Editors
Jupyter Notebooks
- Full-featured notebook editing with syntax highlighting and IntelliSense
- Execute on cloud GPUs/CPUs or local Python environments
- Seamless kernel switching between local and remote runtimes
Lexical Documents
- Notion-like rich text editor with real-time collaborative editing
- Support for images, tables, code blocks, mathematical equations, and formatted text
- Perfect for creating data science reports, documentation, and presentations
🗂️ Integrated Workspace Management
Datalayer Spaces (Explorer Sidebar)
- Browse and manage your cloud documents and notebooks
- Create, rename, delete files directly in the cloud
- Virtual file paths:
datalayer://Space Name/document.ipynb
- Collaborative workspace sharing
Datalayer Runtimes (Explorer Sidebar)
- Real-time monitoring of all active cloud environments
- One-click runtime creation and termination
- Resource usage and cost tracking
- Environment type indicators (CPU/GPU, memory, duration, etc.)
- Health status monitoring and automatic recovery
⚙️ Smart Runtime Management
- Automatic provisioning - Runtimes created on-demand when you run cells
- Intelligent reuse - Existing healthy runtimes are reused to conserve credits
- Health verification - Automatic checks ensure runtime reliability
- Flexible duration - Configure runtime lifetime (1-1440 minutes)
🎨 Native VS Code Integration
- Theme synchronization - Documents automatically match your VS Code theme
- Unified kernel picker - Access Datalayer cloud, local Python, and Jupyter servers
- Rich status indicators - Connection status and runtime info in status bar
- Command palette integration - All features accessible via
Ctrl+Shift+P
💡 Common Questions
Do I need Python locally? No! Cloud runtimes handle all execution with zero local setup. You can still connect to local Python/Jupyter environments if preferred for hybrid workflows.
Can I edit cloud documents? Yes! Cloud documents are fully editable. Create, modify, and collaborate on notebooks and lexical documents directly in your cloud spaces.
How do credits work? Runtimes consume credits while active. The extension intelligently reuses existing healthy runtimes to minimize costs and maximize your credit efficiency.
Can I use without a Datalayer account? Absolutely! Use it for local .ipynb files and connecting to your existing Python/Jupyter environments. Cloud features require an account.
How do I get an access token? Visit datalayer.app, navigate to account settings, and generate a token for VS Code integration.
How fast is the local ↔ cloud switching? Switching between local and cloud execution takes just 2 clicks via the kernel picker - no configuration or setup required.
What makes lexical documents special? Think Notion meets Jupyter! Unlike traditional notebooks, lexical documents provide a Notion-like editing experience with rich formatting, real-time collaboration, and support for images, tables, and formatted text alongside executable code - perfect for creating professional reports and documentation.
Installation
From Marketplace:
- Open Extensions view (
Ctrl+Shift+X / Cmd+Shift+X)
- Search "Datalayer Platform"
- Click Install
From .vsix file:
- Download from releases
- Open Command Palette (
Ctrl+Shift+P / Cmd+Shift+P) → "Extensions: Install from VSIX..."
Key Commands
Authentication:
- Login/Logout
- Show Authentication Status
Documents:
- Create New Jupyter Notebook (local or cloud)
- Create New Lexical Document (local or cloud)
- Context menu in Spaces tree: New Notebook/Lexical in cloud workspace
- Context menu: Open, Rename, Delete, Share for collaboration
Runtimes:
- Select/Switch Runtime (local ↔ cloud switching)
- Terminate Runtime(s)
- View Runtime Controllers Status
- Monitor resource usage and costs
Configuration
Open settings (Ctrl+, / Cmd+,) and search "Datalayer":
Service URLs - Default to https://prod1.datalayer.run:
datalayer.services.iamUrl
datalayer.services.runtimesUrl
datalayer.services.spacerUrl
datalayer.services.spacerWsUrl (WebSocket: wss://prod1.datalayer.run)
Runtime:
datalayer.runtime.defaultMinutes - Duration (default: 10, max: 1440)
Logging:
datalayer.logging.level - trace/debug/info/warn/error (default: info)
datalayer.logging.includeTimestamps - Add timestamps (default: true)
datalayer.logging.enableSDKLogging - Log API calls (default: true)
datalayer.logging.enablePerformanceMonitoring - Track performance (default: false)
Recent Updates
Runtime Controller Improvements
- Smart Runtime Switching: Kernel picker now shows individual runtime controllers for seamless switching between cloud environments
- Automatic Kernel Selection: Selecting a runtime automatically activates it as the notebook kernel
- Proper Cleanup: Switching between runtimes properly disposes old WebSocket connections
- Tree View Sync: Runtime tree automatically refreshes when runtimes are created or selected
Documentation & Quality
- TypeDoc API Documentation: Complete API documentation now available at datalayer-desktop.netlify.app
- Zero TypeDoc Warnings: All exported types properly documented
- Node.js 20 Compatibility: Fully updated to match VS Code 1.98.0 runtime requirements
Known Limitations
- Uses older Jupyter WebSocket protocol (technical constraint, does not affect functionality)
Developer Resources
License
MIT License - See LICENSE