Skip to content

Commit

Permalink
give kernel name
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Jun 24, 2024
1 parent e1f2a9e commit 99445e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def test_ui(session):

# get the current path
root_folder = Path(__file__).parent
repo_name = root_folder.name

# Copy the ui.ipynb to test_ui.ipynb
session.run("cp", root_folder / "ui.ipynb", root_folder / "nox_ui.ipynb")

# set the kernel name to test-se.plan using entry_point command
session.run("entry_point", "--test", root_folder / "nox_ui.ipynb")

test_notebooks = [root_folder / "nox_ui.ipynb"]
Expand All @@ -62,7 +62,7 @@ def test_ui(session):
print("Running notebook", notebook)

try:
ep = ExecutePreprocessor(timeout=600, kernel_name="test-se.plan")
ep = ExecutePreprocessor(timeout=600, kernel_name=f"test-{repo_name}")

nb_out = ep.preprocess(nb_in)
except Exception as e:
Expand Down

0 comments on commit 99445e6

Please sign in to comment.