All Projects → yunabe → Tslab

yunabe / Tslab

Licence: apache-2.0
Interactive JavaScript and TypeScript programming with Jupyter

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Tslab

Ielixir
Jupyter's kernel for Elixir programming language
Stars: ✭ 312 (+30%)
Mutual labels:  jupyter-notebook, jupyter, repl
Best Of Jupyter
🏆 A ranked list of awesome Jupyter Notebook, Hub and Lab projects (extensions, kernels, tools). Updated weekly.
Stars: ✭ 200 (-16.67%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Notebook As Pdf
Save Jupyter Notebooks as PDF
Stars: ✭ 290 (+20.83%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Awesome Jupyter
A curated list of awesome Jupyter projects, libraries and resources
Stars: ✭ 2,523 (+951.25%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Paperboy
A web frontend for scheduling Jupyter notebook reports
Stars: ✭ 221 (-7.92%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Jupyter Tips And Tricks
Using Project Jupyter for data science.
Stars: ✭ 245 (+2.08%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Nteract
📘 The interactive computing suite for you! ✨
Stars: ✭ 5,713 (+2280.42%)
Mutual labels:  jupyter-notebook, jupyter, repl
Juniper
🍇 Edit and execute code snippets in the browser using Jupyter kernels
Stars: ✭ 189 (-21.25%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Lfortran
Official mirror of https://gitlab.com/lfortran/lfortran. Please submit pull requests (PR) there. Any PR sent here will be closed automatically.
Stars: ✭ 220 (-8.33%)
Mutual labels:  jupyter-notebook, jupyter, repl
Python Training
Python training for business analysts and traders
Stars: ✭ 972 (+305%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Jupyterlab Lsp
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Stars: ✭ 796 (+231.67%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Sqlcell
SQLCell is a magic function for the Jupyter Notebook that executes raw, parallel, parameterized SQL queries with the ability to accept Python values as parameters and assign output data to Python variables while concurrently running Python code. And *much* more.
Stars: ✭ 145 (-39.58%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Almond
A Scala kernel for Jupyter
Stars: ✭ 1,354 (+464.17%)
Mutual labels:  jupyter-notebook, jupyter, repl
Jupyterwith
declarative and reproducible Jupyter environments - powered by Nix
Stars: ✭ 235 (-2.08%)
Mutual labels:  jupyter-notebook, jupyter, jupyterlab
Jupyterhub Deploy Teaching
Reference deployment of JupyterHub and nbgrader on a single server
Stars: ✭ 194 (-19.17%)
Mutual labels:  jupyter-notebook, jupyter
Awesome Jupyterlab Extension
😎 A curated list of awesome Jupyterlab extension projects. 🌠 Detailed introduction with images.
Stars: ✭ 198 (-17.5%)
Mutual labels:  jupyter, jupyterlab
California Coronavirus Data
The Los Angeles Times' independent tally of coronavirus cases in California.
Stars: ✭ 188 (-21.67%)
Mutual labels:  jupyter-notebook, jupyter
Graph Notebook
Library extending Jupyter notebooks to integrate with Apache TinkerPop and RDF SPARQL.
Stars: ✭ 199 (-17.08%)
Mutual labels:  jupyter-notebook, jupyter
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+1103.33%)
Mutual labels:  jupyter-notebook, jupyter
Lgo
Interactive Go programming with Jupyter
Stars: ✭ 2,225 (+827.08%)
Mutual labels:  jupyter-notebook, repl

tslab

Build Status Binder npm version

tslab is an interactive programming environment and REPL with Jupyter for JavaScript and TypeScript users. You can write and execute JavaScript and TypeScript interactively on browsers and save results as Jupyter notebooks.

Features

  • Interactive JavaScript and TypeScript programming with Jupyter and Node.js.
  • The power of types from TypeScript project.
    • Type safety even in JavaScript mode.
    • Rich code completion and code inspection thanks to types.
  • Display non-text contents like images, HTML, JavaScript, SVG, etc...
  • Interactive deep neural network machine learning (TensorFlow.js) and data exploration with JavaScript.
  • JavaScript is 40x faster than Python.
  • TypeScript 4.1 support.
  • Top-level await support.
  • REPL console support.

Screenshots: Code inspection (Shift-Tab) and completion (Tab)

Try tslab without installing it

Binder

Thanks to binder (mybinder.org), you can try tslab on your browsers without installing it into your system. Open a temporary Jupyter Notebook from the button above and enjoy interactive JavaScript and TypeScript programming.

Example notebooks

To learn what what we can do with JavaScript on Jupyter, view example notebooks in nbviewer.

If nbviewer is down, please view the notebooks on GitHub instead.

Installing tslab

Prerequisites

Installing tslab

First, install tslab with npm.

npm install -g tslab

Please make sure tslab command is available in your terminal.

tslab install --version

Then, register tslab to your Jupyter environment.

tslab install [--python=python3]

By default, tslab is registered with python3 in unix-like system and python in Windows. If Jupyter is installed with a different Python in your system, please specify the python command with --python flag.

After you run tslab install, please check two kernels (jslab and tslab) are installed properly to jupyter.

$ jupyter kernelspec list
Available kernels:
  jslab      /usr/local/google/home/yunabe/.local/share/jupyter/kernels/jslab
  tslab      /usr/local/google/home/yunabe/.local/share/jupyter/kernels/tslab

Usage: JupyterLab and Jupyter Notebook

After you register tslab to Jupyter, start JupyterLab and Jupyter Notebook as usual. You can now create JavaScript and TypeScript notebooks.

# JupyterLab
# `--port=` to change the port to accept connections.
# `--ip=0.0.0.0` to accept external connections.
jupyter lab [--port=8888] [--ip=0.0.0.0]

# Jupyter Notebook
jupyter notebook

In Jupyter, you can complete code by pressing Tab and show tooltips by pressing Shift + Tab.

Usage: REPL console

You can also use tslab and Jupyter as an interactive console (REPL). To use tslab as REPL, please run jupyter console with --kernel=jslab (JavaScript) or --kernel=tslab (TypeScript).

jupyter console --kernel=tslab

Clarification

tslab is an interactive JavaScript and TypeScript programming environment on Node.js (aka Server-side JavaScript). tslab does not support code execution on browsers (aka Client-side JavaScript) at this moment.

Read more

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].