Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hello,
I am trying to migrate python notebooks from project A to project B.
for that I started by looking if it is possible to do it directly from the interface (with a copy button for example) but i didn't find it.
So I connected to the server and tried to copy the notebook by doing a 'cp -rp my source_folder/file destination/file'.
the file was well copied to the destination project but it is not displayed on the dataiku interface, so I think that there is metadata to modify somewhere. Any ideas on how I can do this from the interface or from the command lines ?
thank you for your answers.
Hi @zikzik
In that case, you will indeed need to copy the entire notebook directory from one project to another:
cp -rf DATA_DIR/config/projects/<ORIG_PROJECT>/ipython_notebooks/ DATA_DIR/config/projects/<DEST_PROJECT>/
I have just checked in my DSS10 instance and it worked.
Thank you for your answer,
I want to migrate all the notebooks of a project, so I'm looking for a method to do it in one shot instead of one by one ( i have a lot of notebooks )
Hi @zikzik
In that case, you will indeed need to copy the entire notebook directory from one project to another:
cp -rf DATA_DIR/config/projects/<ORIG_PROJECT>/ipython_notebooks/ DATA_DIR/config/projects/<DEST_PROJECT>/
I have just checked in my DSS10 instance and it worked.
thank you, it works but I have rights problems, I can't launch the notebook in the new project. It's read only access.
HI @zikzik
Have you used DSS system user to copy that directory?
Yes it was a user problem, now it works, thank you very much ๐