Skip to content

Conversation

ZQyou
Copy link
Contributor

@ZQyou ZQyou commented Aug 20, 2025

Use path_selector to allow users to select the root directory for their notebooks.

@ZQyou ZQyou requested a review from johrstrom August 20, 2025 16:03
@ZQyou ZQyou self-assigned this Aug 20, 2025
working_dir:
widget: "path_selector"
label: "Root Directory"
data-target-file-type: dirs # Valid values are: files, dirs, or both
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually be show_files: false.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ZQyou this data-target-file-type doesn't do anything here. You need show_files: false. Just FYI in case that's critical for this.

@johrstrom
Copy link
Contributor

You may want to add required: true so that users are forced to fill it out. Or deal with it being empty/invalid in the script.

@ZQyou
Copy link
Contributor Author

ZQyou commented Aug 20, 2025

Thanks. I just found out there is no default for empty field. I have fixed it.

@ZQyou
Copy link
Contributor Author

ZQyou commented Sep 24, 2025

Added a safeguard to check non-existent or unreadable directory

@ZQyou ZQyou merged commit baa1ed0 into master Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants