Cantor 18.12 – KDE way of doing mathematics

Curious to read about Cantor on LabPlot’s homepage? This is easy to explain. Cantor has got quite a lot of development in the last couple of months, also with great contribution from LabPlot developers. There is a close collaboration between these two KDE projects which we hope to intensify even further in future and to make better use of the common code and human resources in order to provide a strong computational and visualization platform for scientific purposes.

In this blog post we want to highlight the more striking new features in Cantor 18.12 that was recently released. Since Cantor can run embedded in LabPlot (see the LabPlot 2.3 release announcement for couple of examples), all the features described below are of course also available for users using Cantor from within LabPlot.

We invested quite a lot into improving the overall usability of Cantor’s worksheet. First improvement we want to mention is the handling of long running and waiting commands. In the past, when executing multiple commands at the same time, there was no feedback for the user which command is being calculated right now and which commands are waiting. In the current release we highlight the currently calculated command entry with a small animation of the prompt. The pending (meaning, queued but not being calculated yet) command entries are also highlighted so the user has the full picture of the processing status.

To bring more structure into the worksheet we allow the user to format worksheet entries by changing the background color, the foreground color and the font properties. The context menu of the command entry was extended to allow more faster access to these formatting options:


Context menu with formatting options

These new formatting options can be used for example to highlight more important parts of the calculations or entries which the user wants to re-visit later again or to simply better format a longer worksheet document. On default, the background color of the command entries is set to the highlighting color of the desktop theme as shown on the following screenshot with an example Maxima session:


Highlighting of command entries

New worksheet entries can be added via the context menu:


Adding new entries via context menu

For faster creation of command entries there is furthermore a dedicated shortcut. To further improve the usability here we implemented the possibility to place the cursor between two different entries. Having this, a new command entry is automatically created and positioned between those two entries as soon as the user starts typing. The same happens when the user pastes some text at the current position of the cursor.

Some computer algebra systems like Maxima provide the ability to get the documentation for commands directly from the interactive prompt (see also Maxima Manual). For multiple choices, Maxima needs to ask back for further input. We improved this workflow and made it more stable. Furthermore, to better discriminate this communication with Maxima asking for additional input from the usual input in the command entries we changed the color and the font for these entries in the worksheet. Also, the status of the command entry is set to “Calculating” and the blinking prompt makes clear some further input is required.



When using Cantor for calculations and the documentation of them, the user has the choice between different entry types that serve different needs. Cantor provides the worksheet entry types “command”, “Latex”, “text” and “image”. In the 18.12 release this list was extended. With the added support for Markdown, the user can now use this markup language to format the text in the worksheet.

When sharing the project files there can be situations where the actual computer algebra system or the programming language used in these project files are not available on the target system. In the past it was not possible to open Cantor’s worksheets in case the “backend system” is not available. In Cantor 18.12 we refactored the code and the way how and when we communicate with the backend. In cases when the backend is not available, the worksheet is opened in read-only mode and all the editing capabilities, also the the actual execution of calculations, are disabled. With this we still allow the user to consume the document and the editing/calculation features are enabled once the actual backend is installed on the target system.

Finally, Cantor has got his own entry on KDE Store – the central place for the content in and around the KDE desktop and applications. Now the user can download Cantor project files published by other users from within the application:


Download new content


At the moment there is not much content but we hope to get more projects published by users in future.

A lot of bug fixing was done for 18.12. Many smaller and bigger features and improvements were implemented and not of all them were described in this post. We refer to the Change Log for the more or less complete list of changes.

There is still a lot of work to be done and we have already a lot of ideas and items in the development backlog. If you are interested in contribution to this project, don’t hesitate to approach us. Testing, coding, writing and publishing of examples – any kind of help is welcome!

3 thoughts to “Cantor 18.12 – KDE way of doing mathematics”

  1. Cantor in addition to KAlgebra, Kalzium, Step are very useful apps that I hope I can use every day. Between 2010-2014, in the days of KDE 4 (on the amazing Kubuntu), I tried them, used them and loved them all. What hindered me to continue using them is the daily crashes I faced with KDE 4. Nowdays that KDE 5 (plasma) is mature, less buggy and weightlighter and elegent, I hope I can use them, especially cantor, without the burden of installing the whole plasma desktop. I think providing AppImages of some of these programs will help in spreading the use and easing the access to your programs in many situations.

    Thank you so much for the amazing apps you are providing!

  2. ” …. handling of long running and waiting commands….”

    Is this mainly only for plotting or does it have all general math capabilities as I rarely ever use plotting or graphing.
    What about it’s speed ? Is it easy or can one compile most all programs one writes ? I am used to using maxima but problem (other than it’s billion and one bugs) is it is so so slow i think mainly because cannot compile it (yeah it claims to be but try actually getting to work !) – i usually do a lot more than single line commands but instead rather relatively long programs.

    1. it’s for all commands, not only for plotting. But Cantor cannot control the speed of the actual calculation, of course. Cantor is just the frontend and passes user’s input to the actual backend like Maxima. If the calculation in Maxima is wrong or the speed is bad, this needs to be addressed directly in Maxima. Cantor doesn’t compile anything.

Leave a Reply

Your email address will not be published. Required fields are marked *