Skip to content

Finding all Jupyter Notebooks in subdirectories #22

Description

@SQLvariant

When recursively searching through directories, I receive different results when I use foreach{...} around the Get-Notebook function, than when I pipe directly to that same command. If I leave off the -Recurse both versions of the command below return the same results. However, when I include the -Recurse the first version (the one without foreach{...}) only returns results from the top directory level, none of the results from lower directories are included.

dir -Filter *.ipynb -Recurse | 
Get-Notebook -Path $_.FullName | 
Group KernelName
dir -Filter *.ipynb -Recurse | %{
Get-Notebook -Path $_.FullName} | 
Group KernelName

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions