Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the path to create notebooks in when navigating directories #3264

Merged
merged 2 commits into from
Jan 27, 2018

Conversation

takluyver
Copy link
Member

Closes gh-3263
Closes gh-3248

There's still an issue where the dashboard goes back to showing the root directory when you create a notebook. I'll look into that later.

@takluyver takluyver added this to the 5.3.2 milestone Jan 25, 2018
@takluyver
Copy link
Member Author

I haven't fully understood the issue with the list showing the previous directory yet, but what I have found is that:

  • I can trigger it by creating a new text file or a directory, as well as a new notebook.
  • The onpopstate() handler we add is getting called, for some reason.

@takluyver
Copy link
Member Author

Educated guesswork led me to use event.preventDefault() on the links that make new files and folders, which seems to fix the issue with the files list jumping back to a previous state.

@takluyver
Copy link
Member Author

@gnestor @Carreau if you have a chance to review this, I think the issue is worth doing a 5.3.2 bugfix release for. I can make the release tomorrow if this gets merged.

@Carreau
Copy link
Member

Carreau commented Jan 27, 2018

Haven't looked at notebook codebase in a while but this look good to me.
Happy if we make a 5.3.2.

@Carreau Carreau merged commit b96d758 into jupyter:master Jan 27, 2018
@takluyver takluyver deleted the i3263 branch January 27, 2018 17:54
@takluyver takluyver modified the milestones: 5.3.2, 5.4 Jan 27, 2018
@gnestor
Copy link
Contributor

gnestor commented Jan 28, 2018

Thanks for fixing this @takluyver! I think that releasing a patch for this is a good idea as it's a regression that was reported by several people. Let me know if I can help with that 👍

@takluyver
Copy link
Member Author

I've released 5.4 to PyPI with the fix (and a few other changes). Now to update conda-forge.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants