Coder Social home page Coder Social logo

vscode-notebook-renderer-starter's Introduction

Use the VS Code yeoman generators instead

This repo is no longer updated. Instead, generator your own project via:

  1. npm install -g generator-code
  2. yo code --insiders and choosing Notebook Renderer

vscode-notebook-renderer-starter

⚠️ Work-in-progress starter code for custom notebook renderers in VS Code. Expect this to change as notebooks matures. ⚠️

This starter includes:

  • 🖥️ TypeScript code to create a simple NotebookOutputRenderer
  • 📦 A Webpack build for renderer client code
  • ⚡ Support for hot module reloading and safe boilerplate
  • 🎨 CSS modules support

Getting this Sample

  1. git clone https://github.com/microsoft/vscode-notebook-renderer-starter.git: clone it
  2. cd vscode-notebook-renderer-starter && npm install: install dependencies
  3. code-insiders .: Open the folder in VS Code Insiders
  4. Hit F5 to build+debug

Structure

A Notebook Renderer consists of code that runs in the VS Code Extension Host (Node.js), which registers the renderer and passes data into the UI code running inside a WebView (Browser/DOM).

This uses TypeScript project references. There are three projects in the src directory:

  • extension contains the code running in Node.js extension host. It's compiled with tsc.
  • client is the UI code, built by Webpack, with access to the DOM.
  • common contains code shared between the extension and client.

When you run watch, compile, or dev, we invoke both tsc and webpack to compile the extension and the client portion of the code.

Todo

  • Toggle between loading from the webpack dev server and disk #95988
  • Localization?

vscode-notebook-renderer-starter's People

Contributors

connor4312 avatar rebornix avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-notebook-renderer-starter's Issues

Missing sample

The starter gives me everything I need (including a notebook provider). It would make sense to also include a sample notebook or it should point to the samples repository or it should point to the samples repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.