October 2023 Newsletter - New formula shortcuts, two experimental widgets, colorful calendar events and much more!

What’s New

Formula shortcuts

If you open the “Add Column” menu, you’ll see a few new options that weren’t there before: Lookups and Shortcuts. These are two types of one-click formula creation that help build out your Grist documents with ease.

  1. Lookups: If your table references other tables, or is referenced in other tables, you’ll be able to access related data with a single click, and perform operations such as sum or average where applicable.
  2. Shortcuts: Shortcuts introduce a one-click way to add common trigger formulas: timestamps, authorship stamps, detecting duplicates, and creating unique identifiers.

Learn more in our documentation.

Beta feature: Advanced Chart custom widget

The Advanced Chart custom widget gives you more power and flexibility than Grist’s built-in charts, offering a wide variety of chart types as well as increased control over styling and layout.

To learn more and try it out yourself, check out our beta docs, and remember: regularly click the “Save” button above the widget to keep your configuration!

Beta feature: JupyterLite notebook widget

jupyter

This experimental widget lets you run custom Python code in JupyterLite, a version of JupyterLab running entirely in the browser. It can use the custom widget plugin API and access or modify any data in the document (subject to Access Rules), unlocking nearly unlimited possibilities for advanced users.

For more information on how to get it up and running, check out our beta docs.

Colorful events in the calendar widget!

You can now color-code events in the calendar widget! All you need to do is assign an optional “Type” column that contains an event’s category and styling. :art:

Bidirectional cursor linking

Thanks to the hard work of @jvorob (who was with us for the summer and will be sorely missed!), cursor linking has received a significant upgrade. As part of this, two widgets can now be linked in both directions, allowing more natural cursor interaction.

Bidirectional linking makes the most sense in action:

bidirectional-linking

Grist CSV Viewer file downloads

You can now download files displayed in the Grist CSV Viewer as CSV and XLSX files.

Grist Labs at NEC 2023

Some of the Grist team travelled to Bordeaux, France to talk about the no-code aspect of Grist at NEC 2023, a conference focused on the digital commons. We were able to meet Grist users serving in the public sector, and even some of our invaluable open source contributors from ANCT.

If you’re interested in having Grist team members talk at your convention about how cool and useful Grist is, get in touch!

Even more improvements!

  • A stealthy but major milestone for Grist’s backend: it has been updated to Node 18.
  • Open source self-hosters: Grist can now serve metrics to the Prometheus monitoring system via a new environment variable GRIST_PROMCLIENT_PORT.

Community Highlights

Working on something cool with Grist? Let us know by posting in the Showcase forum!

Learning Grist

Webinar: Charts and Summary Tables

In November, we’ll learn how to summarize and analyze data in charts and summary tables, with tips and tricks to get more out of summary tables.

Monday November 20th at 3:00pm US Eastern Time.

SIGN UP FOR NOVEMBER’S WEBINAR

Calendars and Cards

In October, we looked at the new calendar widget and discovered the how to get the most out of calendar views in your documents. Since card widgets pair nicely with calendars, we looked at those as well.

WATCH OCTOBER’S RECORDING

Templates

We’ve gone through our roster of templates and added in a sprinkling of calendar widgets to make sure they’re as helpful as possible. Take, for example, the Time Tracking + Invoicing template, which now has a calendar view:

GO TO TEMPLATE

7 Likes

Amazing work here, you guys have been busy!

One question on the Advanced Charts custom widget. I need the ability to add linear trend lines to my scatter charts. Unless I am missing something, it seems the way this is done in Chart Studio is through the “Analyze” tab, which seems to be missing on this custom widget. Any plans to add that?

Thanks for all your hard work on these new features!

1 Like

I don’t think we can add the Analyze tab from Chart Studio. But your use case is a good fit for the new Jupyterlite notebook widget. Here’s an example:

Code:

from sklearn.linear_model import LinearRegression
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

plt.show()

@grist.on_records
def _(records):
    df = pd.DataFrame(records)
    x = np.array(df.A).reshape(-1, 1)
    y = np.array(df.B).reshape(-1, 1)
    linear_regressor = LinearRegression()
    linear_regressor.fit(x, y)
    y_pred = linear_regressor.predict(x)
    plt.scatter(x, y)
    plt.plot(x, y_pred, color='red')
    plt.show()
2 Likes

New user here, and I’m impressed with the pace of development!

Question: I’m running grist-core 1.1.6 and my add column menu only shows one option. Is this a limitation of grist-core?

1 Like

Hi @astrodad, the add column menu is available in grist-core, but currently needs to be turned on explicitly with an environment variable, something like:

GRIST_NEW_COLUMN_MENU=true yarn start

That’s if you are running Grist from source; if from docker, it would be something like:

docker pull
docker run -e GRIST_NEW_COLUMN_MENU=true -p 8484:8484 -it gristlabs/grist

The menu is also a new feature, so you’ll need to use the latest version of Grist from github, or with docker use the latest tag. We generally make a new numbered release of grist-core at the start of the month, so 1.1.7 should be coming soon.

An engineer is working on removing feature flags for a few recent improvements, so that they the features are available by default. We use the flags so as not to disrupt users during feature development.

4 Likes

Thank you! I will review those environment variables to see if there’s anything else I’m missing!

If one would like to add all the new features that are not yet set to standard, what lines should be added to Docker Compose besides the New Column Menu?

I think I saw somewhere else there should be also a line for the calendar or something?

1 Like