Skip to content

Colab: chap 2: NameError: name 'setup_chapter' is not defined #143

@DogmaF

Description

@DogmaF

Information

The problem arises in chapter:

  • Chapter 2: Text Classification

Describe the bug

When running the chapter 2 notebook in Colab, the second cell of the notebook generates a NameError:

NameError: name 'setup_chapter' is not defined

To Reproduce

Steps to reproduce the behavior:

  1. open notebook in Colab
  2. run the first cell
  3. run the second cell

Contents of cell:

# hide
from utils import *
setup_chapter()

Error traceback:

NameError                                 Traceback (most recent call last)
[<ipython-input-4-258ca2570391>](https://localhost:8080/#) in <cell line: 3>()
      1 # hide
      2 from utils import *
----> 3 setup_chapter()

NameError: name 'setup_chapter' is not defined

Expected behavior

The notebook cell should run to completion without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions