numbl
v0.4.12
Published
Run .m source files in the browser and on the command line by compiling to JavaScript
Maintainers
Readme
Numbl
A numerical computing environment compatible with MATLAB syntax, featuring 400+ built-in functions. Runs in your browser or on the command line.
Documentation | Browser IDE | REPL | Plot Gallery
Quick Start
Try it in the browser at numbl.org -- no installation required.
Or use the CLI:
npx numbl # interactive REPL
npx numbl eval "disp(eye(3))" # evaluate inline code
npx numbl run script.m # run a .m fileInstall globally for regular use:
npm install -g numblNative Addon
For faster linear algebra, FFT, and C++ operations, build the optional native addon:
# Prerequisites: C++ compiler, libopenblas-dev, libfftw3-dev (or equivalents for your OS)
numbl build-addonRebuild after upgrading numbl (npm install -g numbl@latest).
Documentation
Full documentation is available at numbl.org/docs, covering:
- Getting Started -- installation, CLI options, native addon
- Language Features -- operators, data types, control flow, classes
- Built-in Functions -- 400+ functions by category
- Plotting -- 2-D/3-D plots, examples, CLI plot server
- Library Usage -- using numbl as an npm package
- Differences from MATLAB -- behavioral differences and limitations
VS Code Extension
The Numbl extension for VS Code provides inline error diagnostics and a built-in figure viewer.
Embedding
Numbl scripts can be embedded in HTML and Markdown pages. See the numbl-embed-example for usage and a live demo.
Authors
Jeremy Magland and Dan Fortunato, Center for Computational Mathematics, Flatiron Institute.
License
Apache 2.0
Disclaimer
numbl is not affiliated with, endorsed by, or supported by MathWorks, Inc. MATLAB is a registered trademark of MathWorks, Inc.
