Skip to content

Releases: JerryI/wolfram-js-frontend

Minor X-Mas Update

27 Dec 13:57
Compare
Choose a tag to compare

Issues

  • #313 large formatted output
  • #321 dataset improvements
  • #322 Failure message
  • minor issues with Sound, Video and Audio objects
  • improvements for CellPrint

New features

Experimental: Standalone Widgets 🔥

WLJS Notebook can be used as a runtime for standalone widgets. It is 1 window app, which uses the full capabilities of a normal notebook (similar to Wolfram CDF or LabView programs) and runs in the isolated generated context.

Other features are listed in Release notes

Happy Holidays and see you in 2025 🎄

Hot fix 2.6.3

05 Dec 17:48
002ed13
Compare
Choose a tag to compare

This release should cover #315 , #314 including all patches from #316

What's new?

  • Refined UI for Windows, Linux & browser interface
  • Improvements in Manipulate
  • Improvements in autocomplete (rescanning the context path variable in a case you imported some library)
  • WLX / Slide cells now report errors, instead of crashing

For homebrew (and other package repositories) users

If you have a restricted internet access, please, use offline-bundle-* version, since it includes all libraries and does not require an active connection to Github servers upon installation.

Minor update & CLI

05 Nov 16:29
Compare
Choose a tag to compare

Desktop App

  • moved to a new Electron version & Node
  • automatic cache purging after an update
  • UI improvements in Linux version (reverted native menu back, fixed rounded corners)
  • fixed #302
  • fixed Linux binaries issue with no-sandbox and icons (you might still need to lift apparmor restrictions on Ubuntu due to the global mutual bug in the electron and Ubuntu services. See README.md)

CLI in OS terminal

Similar to VSCode it is possible to start or open a folder in WLJS Notebook using the command

wljs .

Misc

  • new examples
  • moved to a new version of LPM (local package manager), which solves many issues with conflicting versions of libraries (including this one #299 ).
  • Check updates button added to the main menu
  • Output truncation control see here
  • fixed #303
  • added shared libraries to the bundle for Linux binaries (Windows, OSX libs are statically linked, but Linux libs are not)
  • WXF support improvements
  • added #301
  • Runtime controls (add external scripts globally on fly)
  • wider support for NeuralNet package
  • improved support for Legended, Video, Audio
  • new command palette item, which helps with voice recording

Minor update (October 2024)

12 Oct 13:48
Compare
Choose a tag to compare

Summary

  • fixed #287
  • fixed (login dialog) #284
  • added support for SystemOpen
  • added support for Entity, Quantity
  • added support for offsetting FrameLabel or AxesLabel in Graphics, Plot (see more here)
  • fixed unescaped character in html export
  • added support for custom global CSS (see Settings)
  • by the default New notebook now open a window with no sidebar
  • Print now supports styled output (Style)
  • new examples on slides
  • InputText, TextView, HTMLView have extended options

Hot fix: 2.5.6

12 Sep 13:13
Compare
Choose a tag to compare

We added the missing feature used in Rasterize and Export.

Notes:

  • electronAPI.requestScreenshot added
  • new examples available

2.5.5

27 Aug 17:10
Compare
Choose a tag to compare

Major Update 👨‍🏫

A cumulative update from the version 2.5.0. We fixed a few bugs in 2D math input and cursor navigations, expanded markdown editor and added new export feature for individual figures used in the notebook. Graphics3D now has ticks (finnally). We introduce massive changes in possibilities of exporting notebooks.

As usual, if you need a fully offline installation, use the -offline- binaries. Otherwise, use the standard version, which requires less disk space.

New features

Excalidraw in Markdown and slide cells

The famous drawing editor now is integrated into .md and .slide cells. Use the following symbol to spawn excalidraw editor

!![]
Screenshot 2024-08-27 at 18 50 13

Figures export

There is a way to embed individual graphs from your notebook to a web. You need just a little knowledge about HTML technology. THis feature is available in Share menu (top bar)

Screenshot 2024-08-27 at 18 50 36

You select which plot to export and as a result you get two section of HTML/JS code: head and figure itself. Paste it to your blog

Graphics3D now has ticks

Ticks cannot be customized, but this is a big step compared to what we had before

Screenshot 2024-08-27 at 18 49 36

AnimatePlot

We have more function for making animations easier. It is important to note, that AnimatePlot keeps the data inside notebook and is safe to be exported to HTML file or using Figure export or embedded to a page.

try to evaluate

AnimatePlot[(*TB[*)Sum[(*|*)(*FB[*)((Sin[2π(2j - 1) x])(*,*)/(*,*)(2j - 1))(*]FB*)(*|*), {(*|*)j(*|*),(*|*)1.0(*|*),(*|*)n(*|*)}](*|*)(*1:eJxTTMoPSmNiYGAoZgMSwaW5TvkVmYwgPguQCCkqTQUAeAcHBQ==*)(*]TB*), {x, -1,1}, {n, 1,30, 1}]

Dynamic HTML export

yes, it runs on a web page without Wolfram Kernel

gigf

A new experimental feature now is available! It order to make the system more general and be able to capture the effects of ManipulatePlot, any combinations of InputRange, InputButton, Offload and many more it is abstracted by the design from the controlling elements and purely analyses the events and mutations of symbols.

You can find some example of this technology in our blog

Please see our documentation.

MDX export is also on the way. We are working on integration it with Docusaurus and other MDX static page generators.

Manipulate

We have implemented Mathematica's basic function

try it

Manipulate[Series[Sinc[x], {x, 0, n}], {n, 1, 5, 1}]

Please, consider to use ManipulatePlot, AnimatePlot, ManipulateParametricPlot or general dynamics using Offload (see Dynamics) for any plots, rapidly changing data and smooth transitions instead of Manipulate.

Outline

Table of content is automatically created for notebook with more than 1 headings. It scans all markdown cells and extracts headings from them

Screenshot 2024-08-27 at 18 55 48

If you click on labels it will automatically scroll into its view

Find and replace

The most basic feature you know from other IDE is now implemented. The search is localized for each cell and can be called using Ctrl/Cmd+f combination of keys

Screenshot 2024-08-14 at 20 56 31

Links to documentation in autocomplete panel

Click to 🔎 icon to open a documentation on a given symbol

Screenshot 2024-08-15 at 12 50 31

This closes #211 report

Animated Equation

We use separate engine to animate TeX equations more efficiently. This subsystem is integrated with Fragments, you can combine both if needed.

This particular technique was developed by Cian Luke Martin, which is basically a post-processing engine for SVGs generated from LaTeX equations

.slide

## Animated LaTeX

$$
\\begin{align*}
\\mathbf{E}(t,x) &= \\sum_{\\omega} \\mathbf{E}_0^{\\omega} ~ exp\\Big( i\\omega t - \\frac{i\\hat{n}(\\omega) \\omega x}{c}\\Big) \\\\ &= \\sum\\mathbf{E}_0^{\\omega} \\colorbox{white}{$exp(-\\frac{\\alpha x}{2})$} ~exp\\Big(i\\omega t - \\frac{i n \\omega x}{c}\\Big)
\\end{align*}
$$ <!-- .element: data-eq-speed="0.1" -->

aniamtedLatex-ezgif com-optimize

Bugs

  • Fixed launching problems #273
  • UI problems on Linux machines
  • Optimizations of WLJS Interpreter. Now we can run quite complex animations like this one (Real Time Fluid Simulation) with many moving vector objects
  • many more, sorry, we do not remember ;)

Major update 🍬

19 Jul 08:49
Compare
Choose a tag to compare

Breaking changes: please, update your client using binaries from this release

Together with @KirillBelovTest we reworked our main application on Windows, cleaned up UI and introduced a few new modes.

As usual pick *-minimal version if you do not have a firewall, that restricts an internet access, and a normal one in a case if the installation has to be done fully offline.

Quick notes

This allows to create a note without making millions of files in your home directory. It stores it in the temporal directory and will ask you where to save if you need this note. All notebook files opened from the native file explorer will be shown in the similar regime (no sidebar, no distractions).

Screenshot 2024-07-18 at 19 46 21

Use Cmd/Ctrl + Shift + N to make one.

Prompt window

This feature registers a global shortcut Cmd/Ctrl + Alt + Space to call a small prompt window - a floating input cell to do some quick calculations.

Screenshot 2024-07-18 at 16 37 51

Templates

Templates are just the same notebooks, stylized using hidden Javascript or HTML cells. The default directory for them is AppData/UserTemplates/. Call them from the command line or top-bar menu

Screenshot 2024-07-18 at 16 45 40

There are several built-in templates for you to try. Note that attachments folder (if found) will also be copied, so that your template can include uploaded images or other files

Code editor improvements

We contacted the developer of CodeMirror 6 and he helped us to improve UX of typing equations. Now it feels more natural, there is no need in lifting your fingers from the keyboard.

ezgif com-math-1

You can jump inside a fraction or other math construction.

Terminal

We added a REPL terminal, so you can directly connect to the evaluation kernel or master kernel (based on Xterm.js)

Libraries update

  • InputRange, InputButton and etc. now allows to have multiple instances (you can just copy and paste one from the output cell) and having no conflicts
  • InputRadio added
  • New method of merging UI elements is added: chaining events, where each new UI element reuses the same EventObject.

New export formats

  • HTML
  • Markdown
  • Figures export (embed to a website)
  • Slides only New - allows to print all slides to PDF. Even dynamic content will be rendered.

More examples

  • Solving Maxwell's equation using FDTD
  • Surface plasmons
  • Solving wave-equation on a silhouette of Rick Astley

Release notes

Each new release will be supplied with a special notebook, that includes all new features and probably some examples

Update policy

Now each release includes metadata, which indicates compatibility with the client app. This prevents updates of the WLJS Frontend from having an incompatible Electron client app. However, console mode will always work.

Acknowledgements

Thanks these people for the financial support:

Any amount (one-time or monthly) is appreciated, your profile will be permanently displayed at Acknowledgements section of WLJS Notebook app.

UPD: fixed windows transparency on Win11

Major update 📦

05 Jul 19:58
1453df8
Compare
Choose a tag to compare

We fixed many bugs, improved UI and implemented decorations for integrals, derivatives and etc.

Please, use _minimal installation binary if you do not have a restricted internet access.

Bugs (& features request) 🪄

  • #213 fixed in Graphics3D
  • #209 issues with clipping
  • #205 windows/linux shortcuts fix
  • #206 Print actually prints to a cell as in Mathematica
  • #154 Boxes overflow fix
  • #69 legends (addiitonal fix)
  • CSS style fix (added base styles for headings, lists and etc along with Tailwind)
  • #167 Dataset improvements
  • Plot, Graphics aspect ratio fix

Screenshot 2024-07-04 at 17 40 58

  • #212 a toolbar for inserting integrals, subscripts, and other symbols was added

plattte-ezgif com-optimize

  • Missing boxes for Sum, Transpose

New syntax sugar 🍯

We have implemented a new type of boxes allowing us to render editable expressions for integrals, series, piecewise, transposed expressions, root boxes and others

Screenshot 2024-07-03 at 22 38 15 Screenshot 2024-07-03 at 22 38 06 Screenshot 2024-07-03 at 22 37 55 Screenshot 2024-07-03 at 22 37 43

Update on dynamics 🧨

  • Refresh wrapper function was implemented
  • Faster dynamic raster graphics: Image got x10 speed up due to typed arrays
Plasmons.mov
  • Circle, Disk full support with correct aspect ratio

Other features 🧪

  • SoundNote implemented
  • Audio object, Video object with a preview
  • WLX support for Markdown cells (now one can embed dynamic figures from WL to markdown similar to slides)

JS errors information field 🐛

Frontend captures unhandled errors in evaluation and now prints it after a cell, which probably caused an error

Screenshot 2024-07-05 at 09 39 49

Client changes 🧜🏻‍♂️

  • Debug mode
  • Dark mode colors fix
  • Feature: manual switching between Light and Dark modes
  • Window transparency feature (Windows 11 & OSX only)
  • Reinstall feature (clean installation)
  • Progress bar

Minor update 📽️

14 Jun 12:01
Compare
Choose a tag to compare

Summary

  • Debug mode (ElectronApp)
  • Export/Import to Markdown feature
  • UI layout fixes
  • New examples
  • Connection indicator
  • Unicode support improvements
  • AI Copilot enhancements
  • AudioObject, support for PCM audio streaming
  • Dataset improvements
  • Stability improvements

Version 2.3.7 🎂

19 May 16:34
6f9abdc
Compare
Choose a tag to compare

Minor update of client & frontend

Probably this will the last update for the next 3 months. We rebuilt the GUI of a launcher, fixed hundreds of small bugs and wrote 15 more documentation pages 📒 with examples and refined API for keyboard ⌨️ event listeners in Graphics library

Docs page 📚

An examples folder was restructured and moved to Demos. All notebooks are read-only there, the system will not let to overwrite them :)

As usual you have a choice of two versions

  • minimal (no offline installation)
  • normal 🍍

👍🏼 Pick up a minimal one if you have an internet connection and no firewalls, it will save up some space. Both versions will work normally offline after installation.

Bugs & features

  • #161 Kubuntu & Ubuntu launch problem fixes 🐛
  • Shortcuts are supported in browser as well 🪄
  • Launcher GUI implemented instead of a console 🪄
Screenshot 2024-05-19 at 16 36 43
  • GNU/Linux / MacOS sockets now can handler connection breaks better (no freezes) 🐞
  • Graphics`Canvas[] feature. See more here
  • Added folder argument to the command line to specify the default home folder (see Readme)
  • Keyboard listeners. Now you can bind keys to WL's event system 🪄
  • Auto install packages from command palette 🪄
  • Introduction to symbolic programming chapter was added 📖

Now we Blog section on the documentation page 🍰 Here we will post some nice example on how we use WLJS in practice.

As a side note

We still have issues running WLJS on Windows from time to time (#162 for example 🪲) and it is not quite reproducible. Please, submit an issue if you face similar problems. It will help a lot us in debugging the problem.