Code Monkey home page Code Monkey logo

jupyter-nodejs's Introduction

Jupyter NodeJS

This is a kernel for Jupyter

Get it while it's hot! or view the example notebook

Prereqs

  • IPython 3.x
  • node
  • ZeroMQ
  • pkg-config

Installation

git clone https://github.com/notablemind/jupyter-nodejs.git
cd jupyter-nodejs
mkdir -p ~/.ipython/kernels/nodejs/
npm install && node install.js
npm run build
npm run build-ext
jupyter console --kernel nodejs

And viola!

image

Also, in the iPython notebook:

image

Supported features:

  • tab-completion (both for variables and paths)
  • error reporting
  • magics! The available extensions can be configured via package/config.js

Installation

node install.js [install-dir] will install the kernel.json file that ipython looks for. The default is for linux machines, ~/.ipython/kernels/nodejs/. You will have to specify an install dir for Mac and Windows (see the docs for info about what that should be)

BabelJS Magic for es6+ goodness

%load_ext babel and then

%%babel
class Awesome {
  constructor() {
    console.log('yeah!')
  }
}

Hovever: import ... syntax doesn't work because of live bindings foo, so just use require() normally and all will be well.

Clojurescript compilation via a himera server

%load_ext clojurescript http://himera-emh.herokuapp.com and then

%%clojurescript
(clojurey goodness)

jupyter-nodejs's People

Contributors

akosel avatar density215 avatar jaredly avatar jjwong0915 avatar kxxoling avatar kyleamathews avatar marshall007 avatar ricardofbarros avatar robynsmith avatar ryan-williams avatar thomasjm avatar

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.