Nextjournal offers an intuitive WYSIWYG interface for creating and publishing notebooks. The features covered in this article will make working with code and data more convenient through the use of several powerful features.
Upload data and load dependencies to illustrate the features in this article.
artwork_data.csv is the complete dataset of the Tate's permanent collection.For more information on uploading data, please see Importing and Exporting.
The demonstration will use pandas to parse artwork-data.csv and figure-factory to create the table. For more information on working with packages in Python or any other language supported on Nextjournal, please refer to How to Install Software and Packages.
Note the URL in the result above. There are two ways of referencing this in another cell.
Cut and Paste method: Hover over the URL to reveal a Copy Result button to the left.
Insert Reference method: place the cursor inside the urlopen() function and typing Cmd/Ctrl-E to reveal the insert menu. Select Insert Reference and find the URL in the list.
The latter approach is more powerful. You will see several other options in this menu.
However the reference is placed, the following cell takes the tate.org.uk URL, grabs the file off the web, and displays it as the result. To learn more about how to display cell results in Nextjournal, please see Understanding Results.