Sharing with B2DROP¶
EUDAT B2DROP is integrated within ECAS for two reasons:
Users can share their Notebooks, data or code with others
Sensitive or private data can be pushed to a private B2DROP repository and are available only for the owner.
In both cases, files from B2DROP are visible to the user in his Jupyter workspace. When you login to ECAS and open a jupyter notebook, two B2DROP directories are mounted: b2drop-shared and b2drop-private respectively.
Moving data to the shared repositories is performed in different ways:
Using the share button (only for notebooks)
Using the move button to move files from a directory to the b2drop-* repository.
If notebooks or Text files are created directly into b2drop-* repository, they will be also available in B2DROP.
Requirements¶
Private B2DROP repository¶
The b2drop-private is synced with the private B2DROP account of the user. Here, users can put their private data (files).
How to mount your B2DROP¶
Please, follow these steps to mount your own B2DROP repository into the jupyter notebook.
Generate app password from B2DROP
Log in to ECASLab
Go to conf
Put the credentials (in two lines) generated from (1) in the env file and save it
Open mount-your-b2drop.ipynb and execute it.
DONE!
Note
You don’t need to repeat the above steps each time you open your notebook. B2DROP will be still mounted unless credentials have been changed or your notebook is deleted.