Skip to content

Inline REPL extensions for VS Code - Execute Ruby/Rust code and see results directly in your editor using Jupyter kernels.

License

Notifications You must be signed in to change notification settings

mh-mobile/vscode-inline-repl

Repository files navigation

VS Code Inline REPL Extensions

This monorepo contains VS Code extensions that provide inline REPL functionality using Jupyter kernels. The extensions allow you to execute code directly in your editor and see the results inline. The project is inspired by Zed Editor's REPL functionality, bringing a similar seamless code evaluation experience to VS Code.

Available Extensions

Project Structure

.
├── packages/
│   ├── core/              # Shared core functionality
│   ├── ruby-extension/         # Ruby Inline REPL extension
│   └── rust-extension/         # Rust Inline REPL extension

This project uses pnpm workspaces for managing the monorepo.

Prerequisites

  • Node.js (version specified in .nvmrc)
  • pnpm
  • VS Code
  • Jupyter
  • Language-specific requirements:
    • For Ruby: IRuby kernel
    • For Rust: Evcxr kernel

Development Setup

  1. Clone the repository:

    git clone https://github.com/mh-mobile/vscode-inline-repl.git
    cd vscode-inline-repl
  2. Install dependencies:

    pnpm install
  3. Build the project:

    pnpm build

Building Extensions

Due to limitations with vsce and pnpm workspaces, extensions need to be built using a bundler:

  1. Build the core package:

    cd packages/core
    pnpm build
  2. Build the extension:

    cd packages/[ruby-extension|rust-extension]
    pnpm build
    vsce package --no-dependencies

For detailed information about each extension, please refer to their respective README files:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

About

Inline REPL extensions for VS Code - Execute Ruby/Rust code and see results directly in your editor using Jupyter kernels.

Resources

License

Stars

Watchers

Forks

Packages

No packages published