Skip to content

replaces / by PreferredPath + .jupyter/ as the default directory if available#422

Open
jhgoebbert wants to merge 4 commits into
jupyterlab:mainfrom
jhgoebbert:main
Open

replaces / by PreferredPath + .jupyter/ as the default directory if available#422
jhgoebbert wants to merge 4 commits into
jupyterlab:mainfrom
jhgoebbert:main

Conversation

@jhgoebbert

Copy link
Copy Markdown

This PR replaces / by PreferredPath + .jupyter/ (if available) as the default directory for chat-files if defaultDirectory is not set or empty.
It is a possible solution for the issue #411

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Binder 👈 Launch a Binder on branch jhgoebbert/jupyter-chat/main

@krassowski krassowski added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels May 2, 2026

@brichet brichet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @jhgoebbert for working on this.

Do you think that you can add a test on this change ?

// area (launcher, menu, palette).
if (targetDirectory === undefined) {
const hasPreferredPath = PageConfig.getOption('preferredPath');
const preferredPath = hasPreferredPath

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we check that preferredPath exists ?

if (targetDirectory === undefined) {
const hasPreferredPath = PageConfig.getOption('preferredPath');
const preferredPath = hasPreferredPath
? hasPreferredPath + '/.jupyter/'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

.jupyter is more for configuration file I think, not sure if this is relevant for chat files.

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

Labels

bug Something isn't working

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants