Run compute jobs on Ocean Protocol directly from VS Code. The extension automatically detects your active algorithm file and streamlines job submission, monitoring, and results retrieval. Simply open a python or javascript file and click Start Compute Job.
Select your algorithm, choose a dataset, and run compute jobs with a single click.
Track job progress and view algorithm logs directly in VS Code.
Results are automatically saved and opened when your job completes.
- Install the extension from the VS Code Marketplace
- Open the Ocean Protocol panel from the activity bar
- Configure your compute settings:
- Node URL (pre-filled with default Ocean compute node)
- Optional private key for your wallet
- Select your files:
- Algorithm file (JS or Python)
- Optional dataset file (JSON)
- Results folder location
- Click Start Compute Job
- Monitor the job status and logs in the output panel
- Once completed, the results file will automatically open in VSCode
VS Code 1.96.0 or higher
The extension adds a dedicated Ocean Protocol section to the activity bar. Here you can:
- Configure compute settings (Ocean Node URL, Private Key).
- Optionally select a dataset file.
- Choose a folder to store compute results.
- Start a compute job with the current algorithm file automatically detected.
- Navigate to the "Start Compute Job" section.
- Ensure your active file is either a JavaScript or Python algorithm.
- Optionally select a dataset file.
- Choose a folder for saving results.
- Click Start Compute Job.
- Monitor the job status and logs in the output panel.
- Once completed, the results file will automatically open in VSCode.
- Custom Compute Node: Enter your own node URL or use the default Ocean Protocol node
- Wallet Integration: Use auto-generated wallet or enter private key for your own wallet
- Custom Docker Images. If you need a custom environment with your own dependencies installed, you can use a custom docker image. Default is oceanprotocol/algo_dockers (Python) or node (JavaScript)
- Docker Tags: Specify version tags for your docker image (like python-branin or latest)
- Algorithm: The vscode extension automatically detects open JavaScript or Python files. Or alternatively you can specify the algorithm file manually here.
- Dataset: Optional JSON file for input data
- Results Folder: Where computation results will be saved
Refer to the project structure and available scripts for local development. Contributions are always welcome—please check our guidelines in the repository.
- Node.js (version specified in
.nvmrc
) - VSCode version 1.93.0 or higher
- Git
-
Clone the repository:
git clone https://github.com/your-username/ocean-protocol-vscode cd ocean-protocol-vscode
-
Install dependencies:
npm install
-
Build the extension:
npm run compile
-
Open in VSCode:
- Press F5 to start debugging. This will open a new VSCode window with the extension loaded.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
For bug reports and feature requests, please open an issue in the GitHub repository.
For general questions about Ocean Protocol, join the Ocean Protocol Discord.