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

@takluyver takluyver commented Jan 25, 2018

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

@takluyver takluyver commented Jan 25, 2018

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.

Loading

@takluyver
Copy link
Member Author

@takluyver takluyver commented Jan 26, 2018

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.

Loading

@takluyver
Copy link
Member Author

@takluyver takluyver commented Jan 26, 2018

@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.

Loading

@Carreau
Copy link
Member

@Carreau 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.

Loading

@Carreau Carreau merged commit b96d758 into jupyter:master Jan 27, 2018
4 checks passed
Loading
@takluyver takluyver deleted the i3263 branch Jan 27, 2018
@takluyver takluyver removed this from the 5.3.2 milestone Jan 27, 2018
@takluyver takluyver added this to the 5.4 milestone Jan 27, 2018
@gnestor
Copy link
Contributor

@gnestor 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 👍

Loading

@takluyver
Copy link
Member Author

@takluyver takluyver commented Jan 28, 2018

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

Loading

@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