Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[semester-upkeep] Provide greater detail on nbgrader errors #29

Open
2 tasks
jmuchovej opened this issue Dec 17, 2019 · 0 comments
Open
2 tasks

[semester-upkeep] Provide greater detail on nbgrader errors #29

jmuchovej opened this issue Dec 17, 2019 · 0 comments
Assignees
Labels
🎆 feature-request 🔑 required Tasks that **need** to be completed, ASAP. 📝 todo Items in still in ideation, discovery, or planning "mode." 🍜 nice to have Tasks that should be completed, but not necessarily ASAP.

Comments

@jmuchovej
Copy link
Member

nbgrader allows us to generate "non-solution" notebooks from "solution" notebooks. More concretely, a Coordinator may write a function like the following:

def train_loop(data: Batches, n_epochs: int = 500):
    # ... some magical preprocessing happens
    for epoch in range(n_epochs):
        # implement the training loop
        ### BEGIN SOLUTION
        for batch in data:
            input, labels = [x.to(device) for x in batch]
            optim.zero_grad()

            output = model(input)
            # some more code
        ### END SOLUTION

and nbgrader will process this cell to produce the following output:

def train_loop(data: Batches, n_epochs: int = 500):
    # ... some magical preprocessing happens
    for epoch in range(n_epochs):
        # implement the training loop
        ### YOUR CODE HERE
        raise NotImplementedError()

Tasks

  • (🔑 Required) Retrieve nbgrader's error and dump that to the screen.
  • (🍜 Nice to Have) Attempt to correct the error
    • This could actually get gnarly pretty quickly, so this should be saved until the very end.
@jmuchovej jmuchovej added 📝 todo Items in still in ideation, discovery, or planning "mode." 🔑 required Tasks that **need** to be completed, ASAP. 🍜 nice to have Tasks that should be completed, but not necessarily ASAP. labels Dec 17, 2019
@jmuchovej jmuchovej added this to the Winter 2019 Upgrade milestone Dec 17, 2019
@jmuchovej jmuchovej removed this from the Winter 2019 Upgrade milestone Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎆 feature-request 🔑 required Tasks that **need** to be completed, ASAP. 📝 todo Items in still in ideation, discovery, or planning "mode." 🍜 nice to have Tasks that should be completed, but not necessarily ASAP.
Projects
None yet
Development

No branches or pull requests

4 participants