Message Boards Message Boards

Wolfram Cloud 1.51 released

Posted 5 years ago

Last week, we released version 1.51 of the Wolfram Cloud to wolframcloud.com. Detailed release notes can be found here: https://www.wolframcloud.com/obj/release-notes/1.51.nb

Below are some of the highlights.

Click-to-copy for non-editable cells

In cloud notebooks, output cells are generally not editable and selections within them didn't work very well since browsers had a hard time dealing with their structure. To make it easy to still "grab" some output, we added click-to-copy: You just need to click an output cell to copy its whole content to the clipboard. You can then paste it into another cell, cloud notebook, desktop Mathematica, or any other application (rich structures might not be preserved in other applications, though).

Click-to-copy

Click-to-copy is disabled on controls that are interactive by themselves, e.g. buttons, sliders and graphics (which you can select individually), in order not to interfere with that interactivity.

Of course, the longer-term goal is to actually support the same granular selection mechanism as on desktop.

Evaluate in Place

You can evaluate expressions "in place" now, just like in desktop notebooks. Just select a (sub) expression in an Input cell and press Ctrl+Shift+Enter (on Windows) or Cmd+Enter (on Mac) to evaluate it, replacing the original expression with the result from the computation.

Evaluate in Place

InputForm-based input

Since cloud notebooks don't support the feature-rich "two-dimensional" input found in desktop Mathematica yet, we added a new control that allows you to enter a textual representation of various typesetting constructs (what we call InputForm) and turns it into the corresponding two-dimensional boxes. Press Ctrl+Shift+1 (or, put differently: Ctrl+!) to bring up the input field and press Enter to "resolve" it into its typeset form. It works both in Input cells (with the right evaluation semantics) and textual cells.

InputForm-based input

You can enter x/y for a fraction, x^y for superscripts, Sqrt[x] for square roots, and various other forms. Clicking the resulting output brings you back to the edit mode.

The control is quite similar to Ctrl+= for free-form linguistic input in the Wolfram Language. We're working on another similar control that would allow entering TeX syntax.

Cell group openers and closers

We now have the same cell group openers and closers as desktop Mathematica (version 12). Closed cell groups have a little arrow attached to them to open the group, which makes the content within them easier to discover. If you use that opener, there will also be a corresponding closer.

Cell group opener

Improved support for special Unicode characters

Cloud notebooks are now better at rendering non-plane-0 Unicode characters, e.g. emojis. If you know their hexadecimal code point, you can enter them using the special \|xxxxxx notation, or you might use some built-in OS functionality (e.g. Ctrl+Cmd+Space on Mac). They work in text as well as in computations.

Emojis

Extended Unicode support isn't perfect yet: ToCharacterCode still splits up non-plane-0 characters into surrogate pairs (this will be changed in Cloud 1.52), and the editor cursor can be moved "inside" emojis (this will be improved in the longer term).


There are many other new features and we fixed quite a few bugs as well. Check out the release notes if you want to read about all the details.

Please let us know if you have any questions or comments.

POSTED BY: Jan Poeschko
9 Replies

Does the shift-$ for latex input work yet?

POSTED BY: Michael Sollami
Posted 5 years ago

Nice update, but not without issues. Getting strange errors in code that worked pre-update. Not a huge deal as there are other ways to do this, but the line of code below now produces the following error.

err = TimeSeriesMap[Sqrt, forecast["MeanSquaredErrors"]];

Java::fldxs: Attempting to set static field err to an incorrect type of value: TemporalData[Time: 10 Aug 2019 to 19 Aug 2019 [SpanFromLeft] Data points: 10 Paths: 1

].

POSTED BY: Michael Madsen

Thanks for the report!

Could you narrow this down to a standalone example, if it's easy? I'm not sure what forecast is in your code, and whether you're running this in some context connected to a Java class.

POSTED BY: Jan Poeschko
Posted 5 years ago
    data=Import["https://finance.yahoo.com/quote/ETH-USD/history/", "Data"];
    table = data[[2, 2, 2]];
    key=data[[2,2,1]];
    d=table[[All,1]];
    v=table[[All,5]];
    ts=TimeSeries[v,{d}];
    tsm = TimeSeriesModelFit[ts,"SARIMA"];
    forecast = TimeSeriesForecast[tsm, {10}];
    err = TimeSeriesMap[Sqrt, forecast["MeanSquaredErrors"]];
    b1 = TimeSeriesThread[{1, 1}.# &, {forecast, err}];
    b2 = TimeSeriesThread[{1,-1}.# &, {forecast, err}];
POSTED BY: Michael Madsen

Thank you! I can reproduce the issue and we're investigating. It seems that this Import is creating a (JLink) symbol err that can't be overwritten. As a workaround, you could use a different symbol name in the subsequent code.

Just for reference: Our internal ticket number is CLOUD-16289. You could search for that in future release notes, although we'll also try to comment back on this thread once we have a fix.

POSTED BY: Jan Poeschko
Posted 5 years ago

When will the WolframNotebookEmbedder get a documented API? This is still sadly not there. Is the thing properly supported now? I remember trying to use it ~6 months ago and it didn't work then.

Are there any other kinds of out-of-cloud notebook display things in the works? I'd enjoy being able to embed Mathematica 3D graphics inside web-pages and whatnot.

POSTED BY: b3m2a1 ​ 

When will the WolframNotebookEmbedder get a documented API?

Soon! We're working on polishing the last bits of its documentation.

Are there any other kinds of out-of-cloud notebook display things in the works? I'd enjoy being able to embed Mathematica 3D graphics inside web-pages and whatnot.

Rendering WL-based interactive content will probably always require some sort of "notebook", but a notebook could only contain a single cell and it could be completely transparent to the viewer that there's a notebook at play. You could put a 3D graphic into a notebook and style it in such a way that it appears as just the graphic, without any decoration around it.

If your question is about whether you need a "physical" cloud notebook (a cloud object) "backing" the embedding (which is the case now, and will still be the case with the initial version of the Wolfram Notebook Embedder library): We're thinking about adding an API such as

wolframcloud.com/render?url=...

where you could pass in a URL that serves a notebook, and it would return an HTML page, rendering that notebook on the fly. Maybe it could also take a content parameter in case you want to supply a literal Notebook (or Cell...) expression. But there are some major hurdles to be figured out with this still, so no promises.

If you're asking about something that doesn't use the cloud at all, then I don't have an answer.

POSTED BY: Jan Poeschko

This is a great release and some very nicely showcased examples here, thank you Jan! I also find cloud working much faster recently. The tools you mentioned that make cloud desktop notebooks work closer to each other are neat!

POSTED BY: Vitaliy Kaurov

The Control+Shift+1 trick is super nice (and maybe more usable than way the desktop notebook interface does). Very nice!

POSTED BY: Arnoud Buzing
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract