Skip to main content Accessibility help
×

How to interact with JFM Notebooks

JFM Notebooks are hosted on CoCalc (https://cocalc.com) and, when included with an article, will be linked to from the caption of article figures. An example of a notebook (from the Editorial ‘Introducing JFM Notebooks’) is here. This link takes a reader to the Jupyter Notebook file (the directory which contains the Jupyter notebook file and associated files e.g. data can also be accessed here).

To view and interact with a JFM Notebook a reader must launch it as their own project: click ‘Edit your own copy’, ‘Create a New Project’, then open the Jupyter Notebook file (*.ipynb) to launch the online JFM notebook. Step by step instructions with screenshots are available here.

Further details and documentation on using CoCalc can be found here.

How to prepare your JFM Notebooks

A JFM Notebook should contain the data and code used to generate a figure in a JFM article and it must be linked to from the figure caption. The output of the JFM Notebook should, therefore, be identical to the image used as the figure. See the Editorial ‘Introducing JFM Notebooks’ for examples.

You can prepare Jupyter Notebooks in your own environment or in CoCalc’s online notebooks. For submission, they must be uploaded to CoCalc. It is possible to use CoCalc for free with trial projects, but projects associated with a licence have higher performance and users do not need a CoCalc account to use them. JFM Notebooks will be associated with the Cambridge University Press (CUP) licence after submission (see submission instructions below).

Please take note of the following requirements when preparing your JFM Notebook:

  • JFM Notebooks must be prepared using a Python library already installed by CoCalc, the full list is here.
  • You should create one CoCalc project for your paper and create a top-level directory folder called ‘JFM-Notebooks’. Include a folder underneath this for each figure that has a JFM Notebook. 
    • The figure folders should be named according to their running order (figure 1, figure 2 etc.).  
    • The figure folders should contain the Jupyter Notebook files (*.ipynb) and any other output (e.g. HTML renderings) associated with that figure.
    • Data can be included in the figure folders or in another folder if it is shared across figures. Please ensure the figure and data folders are all nested underneath the ‘JFM-Notebooks’ directory folder in the file hierarchy to ensure all necessary files are available when share links are created. 
    • For visual consistency, the JFM Notebook Jupyter file (*.ipynb) should begin with the JFM Notebook logo from the included file "JFM-notebooks-logo.jpg". It should be placed at the top of the notebook, as shown in this example.
  • Share links for your JFM Notebooks are created by ‘publishing’ the top level JFM-Notebooks directory folder (choose “Published (unlisted) – only people with the link can view this”). You can find the share links for each file in the publish controls. See here for instructions.
  • Include links to the Jupyter Notebook file (*.ipynb) or any HTML renderings in the figure caption in your paper. 

The CoCalc website has detailed documentation on the CoCalc platform (https://doc.cocalc.com/), getting started (https://doc.cocalc.com/getting-started.html) and Jupyter Notebooks (https://doc.cocalc.com/jupyter.html). 

How to submit your article with JFM Notebooks

If you are interested in submitting a JFM article with associated Jupyter Notebooks please prepare them as outlined above and add links to the JFM Notebooks in the figure caption of the figure that it relates to (see ‘How to prepare your JFM Notebooks’ above). Please note you should choose the unlisted share option; be aware that this will give access to anyone with the link, this is to allow your notebook to be accessed by Editors and Reviewers as part of the peer review process. The notebooks will not be publicly listed unless you choose this.

Your JFM Notebooks should be associated with the Cambridge license after submission to ensure good performance and allow referees to access the notebooks seamlessly. After submission, please follow the steps below: 

  1. Re-name your CoCalc project with the manuscript ID of your Submission (this will be in the format JFM-##-####) 
  2. Make CUP a Collaborator. This can be done in the ‘users’ section by searching for ‘Cambridge University Press’ in the ‘Add new collaborators’ box, instructions are here
  3. Email JFMEditorial@cambridge.org to confirm that CUP are a collaborator and the project is now named with the manuscript ID. The Editorial Office will then apply the CUP license to your shared project.

If you would like to have the CUP license associated with your notebooks before submission, please contact the Editorial Office: JFMEditorial@cambridge.org.