Skip to content

Commit

Permalink
Move import of nbformat inside get_first_cell_content method
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodAxe committed Oct 30, 2023
1 parent 410c03f commit b7b55d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/verify_notebook_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
from typing import Optional

import super_gradients
import nbformat


def get_first_cell_content(notebook_path):
import nbformat

# Load the notebook
with open(notebook_path, "r", encoding="utf-8") as notebook_file:
notebook_content = nbformat.read(notebook_file, as_version=4)
Expand Down

0 comments on commit b7b55d9

Please sign in to comment.