How To Upload Data To Jupyter Notebook
Adding data to the JupyterHub¶
This section covers how to add together data to your JupyterHub either from the cyberspace or from your own car. To acquire how to share information that is already on your JupyterHub, see Share data with your users.
Note
When you add data using the methods on this folio, you will but add it to your user directory. This is not a place that is accessible to others. For information on sharing this data with users on the JupyterHub, meet Share information with your users.
Adding data from your local car¶
The easiest way to add information to your JupyterHub is to utilize the "Upload" user interface. To practice then, follow these steps:
-
Offset, navigate to the Jupyter Notebook interface home page. You lot can do this by going to the URL
<my-hub-url>/user/<my-username>/tree
. -
Click the "Upload" button to open up the file chooser window.
-
Choose the file you wish to upload. Y'all may select multiple files if you wish.
-
Click "Upload" for each file that yous wish to upload.
-
Wait for the progress bar to finish for each file. These files volition now exist on your JupyterHub, your abode user'southward home directory.
To learn how to share this data with new users on the JupyterHub, see Share data with your users.
Downloading data from the control line¶
If the data of interest is on the internet, you lot may too use code in order to download it to your JupyterHub. At that place are several ways of doing this, so we'll cover the simplest approach using the unix tool wget
.
-
Log in to your JupyterHub and open a terminal window.
-
Use
wget
to download the file to your current directory in the concluding.
Case: Downloading the gapminder dataset.¶
In this example we'll download the gapminder dataset, which contains data nearly land Gross domestic product and live expectancy over time. You can download it from your browser at this link.
-
Log in to your JupyterHub and open a terminal window.
-
Employ
wget
to download the gapminder dataset to your current directory in the terminal.wget https://swcarpentry.github.io/python-novice-gapminder/files/python-novice-gapminder-data.cipher
-
This is a aught file, so we'll demand to download a unix tool called "unzip" in society to unzip it.
-
Finally, unzip the file:
unzip python-novice-gapminder-data.nada
-
Confirm that your data was unzipped. It could be in a binder called
data/
.
To acquire how to share this data with new users on the JupyterHub, encounter Share information with your users.
Source: https://tljh.jupyter.org/en/latest/howto/content/add-data.html
Posted by: nestorcluall.blogspot.com
0 Response to "How To Upload Data To Jupyter Notebook"
Post a Comment