Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ijs

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ijs

Interactive JavaScript kernel for IPython

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ijs - Interactive JavaScript

An environment for interactive authoring and executing JavaScript code using a notebook metaphor, built on top of IPython.

An ijs notebook is powered by a javascript kernel written in node.js (and replaces the standard python kernel). A kernel runs behind the scenes and executes the code you write in notebooks. The notebook displays the outputs generated by your code.

You can use node.js APIs, as well as the large library of node.js modules in your notebooks. You can also author client-side HTML and JavaScript to run code within the browser. JavaScript is truly universal!

Hello World using node.js APIs and qr-image node module

Getting Started

You can use ijs by installing it as a node module, or via a pre-packaged docker container.

Local Installation

You can install the ijs node module globally and start the notebook environment using the ijs command.

sudo npm install -g ijs
ijs <path to working directory>

Then browse to http://localhost:9999.

The tool will create a notebooks directory within the specified working directory.

Note: If you don't already have node.js and IPython installed, you'll need to do so first. Unfortunately setting these up can be a bit involved. This page might help: http://ipython.org/install.html ... as of right now ijs requires IPython v2.4.1. Support for 3.x is coming.

Docker

This avoids the need to go through the steps of getting a local setup. As long as you've got a working docker setup (using boot2docker on a mac), you're good to go. Just issue the following commands:

docker pull nikhilk/ijs
docker run -i -p 9999:9999 -v <path to working directory>:/data -t nikhilk/ijs

And then browse to http://localhost:9999 and you're on your way.

Screenshots

Authoring Async Code

Lots of node.js APIs are async, and you can write async code in notebook cells too! Hello World - Async Edition

Working with JSON

JSON is everywhere, and you can use a %%json cell to easily declare JSON data. The notebook provides auto-complete functionality which extends to this JSON data. JSON Data

HTTP requests

You can use the notebook interface to experiment with HTTP APIs using the HTTP client provided by request node module. HTTP Requests

Client-script

You can easily add HTML markup to your notebook using an %%html cell and client-script using a %%script block to use a variety of javascript libraries such as d3.js. HTML, JavaScript, d3.js

Keywords

FAQs

Package last updated on 03 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc