• Stars
    star
    1,865
  • Rank 24,853 (Top 0.5 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Interactive JavaScript notebooks with clever graphing

Kajero

npm Join the chat at https://gitter.im/JoelOtter/kajero

Interactive JavaScript notebooks with clever graphing.

You can view a sample notebook here.

Features

  • It's just Markdown - a Kajero notebook is just a Markdown document with a script attached.
  • Every notebook is fully editable in the browser, and can be saved as Markdown or HTML.
  • Notebooks can also be published as Gists, generating a unique URL for your notebook.
  • JavaScript code blocks can be executed. They're treated as functions, with their return value visualised. Kajero can visualise arrays and objects, similar to the Chrome object inspector.
    • Code blocks can be set to run automatically when the notebook loads. They can also be set to hidden, so that only the result is visible.
  • Data sources can be defined. These will be automatically fetched when the notebook is loaded, and made available for use inside code blocks.
  • Includes Reshaper, for automatic reshaping of structured data.
  • Includes D3, NVD3 and Jutsu, a very simple graphing library which uses Reshaper to transform arbitrary data into a form that can be graphed.

Related projects

  • Reshaper - reshape data to match a schema
  • Smolder - a library wrapper that attempts to reshape data going into your functions, using Reshaper
  • Jutsu - a simple graphing library, with support for Smolder

Contributing

Issues and Pull Requests are both extremely welcome!

Command-line tools

Kajero includes a couple of simple command-line tools for users who don't want to use the inline editor to create their notebooks.

Installation

npm install -g kajero, or clone this repository.

You can build the JS library by running npm install, followed by gulp. For a production build, NODE_ENV=production gulp.

Commands

You can generate new notebooks directly from Markdown files without using the web editor.

  • kajero html [file.md]

Will output generated HTML of a new notebook. You can pipe it to a file like this:

kajero html [file.md] > output.html

  • kajero publish [file.md]

Will publish your notebook as a gist, and return a unique URL to your new notebook. You don't need to build the JS library for these scripts to work.

Running tests

Run the unit tests with npm test.

For coverage reporting, run with npm run test-cov. Note that the coverage percentages may not be exactly correct - this is because Istanbul runs over the compiled ES5 code, rather than the ES6 source.

More Repositories

1

termloop

Terminal-based game engine for Go, built on top of Termbox
Go
1,424
star
2

reshaper

Reshape JavaScript objects to match a schema
JavaScript
104
star
3

jutsu

One-line graphs, with support for Smolder built-in
JavaScript
54
star
4

smolder

A library wrapper that attempts to reshape data going into your functions.
JavaScript
27
star
5

khaled-tinder

DJ Khaled Tinder bot
Python
12
star
6

dayligo

Golang library for working with Daylio backups
Go
9
star
7

khaled-bot

A very, very silly Reddit bot.
Python
8
star
8

go-garbled

Evaluator for Yao's Garbled Circuits, with example circuits
Go
6
star
9

risky

Chrome extension for helping out with those 'risky clicks'.
JavaScript
5
star
10

python-gameboy

A simple Game Boy emulator in Python.
Python
5
star
11

LTMSCPL

The repository for the Link To My SoundCloud Public License.
4
star
12

git-branch-i

The missing git branch --interactive
Go
4
star
13

resume

My CV, TeX and PDF versions.
TeX
3
star
14

k8s-context-i

Interactive terminal-based k8s context switcher
Go
2
star
15

golecture1

Code samples and slides for first Go lecture
1
star
16

BearwavesWebsite

The website for Bearwaves game studio.
CSS
1
star
17

golecture2

Slides and code samples for Go lecture 2, on 25/2/15 at Imperial.
Go
1
star
18

pai-sho

An effort to implement the Pai Sho game from "Avatar: The Last Airbender" using LibGDX.
Java
1
star
19

terraform-workspace-i

Interactive Terraform workspace switcher
Go
1
star
20

arm-project

ARM project, containing an emulator, assembler and Raspberry Pi extensions.
C
1
star
21

Uplift

Bearwaves' first game, a multi-platform, sci-fi action RPG.
Java
1
star
22

ggapp

CLI tool and Go library for GGapp.io
Go
1
star