Notebook: Support for moving files

Created on 21 Sep 2015  Â·  9Comments  Â·  Source: jupyter/notebook

This is a feature request, for usability reasons it would be beneficial if users could move files between Folders in the file view, allowing them to organise their notebooks after creation.

Most helpful comment

I ran into this lately, also, but discovered a work-around (non-ideal, but usable when SSH is not an option or the notebook server is not local): rename the notebook from the UI, but put the desired directory path in front of the name. The notebook server will relocate the notebook into the directory. I also think it would be nice to have a UI element for moving a notebook, but for now you should be able to work around it using this.

On Sep 21, 2015, at 5:06 AM, Rares Mirica [email protected] wrote:

This is a feature request, for usability reasons it would be beneficial if users could move files between Folders in the file view, allowing them to organise their notebooks after creation.

—
Reply to this email directly or view it on GitHub.

All 9 comments

I ran into this lately, also, but discovered a work-around (non-ideal, but usable when SSH is not an option or the notebook server is not local): rename the notebook from the UI, but put the desired directory path in front of the name. The notebook server will relocate the notebook into the directory. I also think it would be nice to have a UI element for moving a notebook, but for now you should be able to work around it using this.

On Sep 21, 2015, at 5:06 AM, Rares Mirica [email protected] wrote:

This is a feature request, for usability reasons it would be beneficial if users could move files between Folders in the file view, allowing them to organise their notebooks after creation.

—
Reply to this email directly or view it on GitHub.

Yes, that is one very creative solution, I will use it as a workaround for now.

I'm working on a pull request now to add moving files. :)

I have another solution, which may not be ideal in terms of data security but is easy to implement:
Simply link the root directory to Dropbox.

This is the current way I am running one server for my group in the university. Dropbox allows an easy way to manage multiple files using their website, however if your codes are very sensitive then you may not want them on Dropbox for unknown disclosure issue.

Renaming with directory path yields this error:

"Invalid notebook name. Notebook names must have 1 or more characters and can contain any characters except :/. Please enter a new notebook name."

my attempted file name (to move to folder Flatiron Introduction to Python):
./Flatiron Introduction to Python/Lists With Maps

Yes, it seems that now the correct way to move a notebook is to use the Move button introduced in #941.

The error message you are seeing was added a year ago, here:
https://github.com/jupyter/notebook/blame/b8b66332e2023e83d2ee04f83d8814f567e01a4e/notebook/static/notebook/js/savewidget.js#L100

SOLUTION:-
jupyter create ipynbcheckoint folder for the files previous state.
open file explorer look for that folder inside ipynbcheckpoint (hidden) most of the cases.
Create your new file there.

I made some improvements over the move functionality by adding a folder selector. The PR is https://github.com/jupyter/notebook/pull/4604

A workaround solution I use is to download the notebook file to your local machine and then upload it to the required folder, not forgetting to delete the old version from the wrong location of course.

Was this page helpful?
0 / 5 - 0 ratings