Skip to content

Commit

Permalink
fix: Draft notebook filename with wildcards and params.
Browse files Browse the repository at this point in the history
Closes #1351.
  • Loading branch information
bilke committed Jan 26, 2022
1 parent 6c505c2 commit d71efa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snakemake/notebook.py
Expand Up @@ -13,6 +13,7 @@
from snakemake.common import is_local_file
from snakemake.common import ON_WINDOWS
from snakemake.sourcecache import SourceCache, infer_source_file
from snakemake.utils import format

KERNEL_STARTED_RE = re.compile(r"Kernel started: (?P<kernel_id>\S+)")
KERNEL_SHUTDOWN_RE = re.compile(r"Kernel shutdown: (?P<kernel_id>\S+)")
Expand Down Expand Up @@ -262,6 +263,7 @@ def notebook(
Load a script from the given basedir + path and execute it.
"""
draft = False
path = format(path, wildcards=wildcards, params=params)
if edit is not None:
if is_local_file(path):
if not os.path.isabs(path):
Expand Down

0 comments on commit d71efa4

Please sign in to comment.