C2DH / jdh-notebook

A collection of Jupyter notebooks for the Journal of Digital History
https://journalofdigitalhistory.org
GNU Affero General Public License v3.0
4 stars 1 forks source link

Author's question related to notebook #76

Closed eliselavy closed 1 year ago

eliselavy commented 1 year ago

1) We added the figure and table captions in the metadata, but they don’t appear in the preview version on the JDH website. Is there a fix or should we not worry about that?

2) Our tables work fine in the print view on Jupyter Notebook, Binder and Nbviewer, but look different (much larger) in the preview version on the JDH website. Is there a fix or should we not worry about that?

3) We used cite2c for in-text citations and it works just fine, but the year of publication is not displayed. Only the authors’ names are given. What could we do to fix that?

4) We used plotly to create our pie and bar charts. They look great in Jupyter Notebook, Binder and Nbviewer but do not appear on the JDH website. Is there a fix or should we not worry about that?

eliselavy commented 1 year ago
  1. In order to see the label of tag and figure, the JSON metadata need to respect following format:

See guidelines: https://journalofdigitalhistory.org/en/guidelines?idx=74&layer=narrative&lh=643&pidx=74&pl=narrative&y=176.5

Screenshot 2022-10-25 at 12 41 09

Example by using: jdh name

Screenshot 2022-10-25 at 12 43 16
  1. no worry about that

  2. Don't understand where, see example below

    Screenshot 2022-10-25 at 13 43 36
  3. need to look at in our side what the ouput of the plotly is not interpreted. Issue open: https://github.com/C2DH/journal-of-digital-history/issues/481

  "outputs": [
    {
     "data": {
      "text/html": [
       "        <script type=\"text/javascript\">\n",

Note In the preview mode be aware content having javascript will not be visible for security reason. Only when it will be published the output will be displayed.

Warning Take care to work with the .ipynb file and not the -checkpoint.ipynb Jupyter creates a checkpoint file every single time you create an .ipynb file, and then it updates the checkpoint file every single time you manually save your progress for the initial .ipynb.