Skip to content

Cookbook currently not building #5

@r-ford

Description

@r-ford

There are a few issues keeping this cookbook from building properly in the gallery, which can be seen in the build logs. To summarize, there is an error running the following cell in surface_currents.ipynb:

%run ./surface_currents_prep.ipynb

Exception: File `'./surface_currents_prep.ipynb.py'` not found.

And in surface_currents_model.ipynb:

NameError                                 Traceback (most recent call last)
/tmp/ipykernel_159/99668342.py in <module>
----> 1 class LossHistory(tf.keras.callbacks.Callback):
      2     def __init__(self, frequency=30):
      3         self.frequency = frequency
      4         self.batch_counter = 0
      5 

NameError: name 'tf' is not defined

I noticed three copies of the main surface_currents.ipynb notebook, one in the root of the repo, one in /notebooks, and one in /notebooks/images. The Cookbook Actions are trying to run all of them, so that might be part of the issue.

There might be a problem with binderbot and %run, but I'm not familiar enough with either. There is some more discussion at #4 about data access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentContent related issue

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions