banner



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:

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

  2. Click the "Upload" button to open up the file chooser window.

    The upload button in Jupyter.
  3. Choose the file you wish to upload. Y'all may select multiple files if you wish.

  4. Click "Upload" for each file that yous wish to upload.

    Multiple file upload buttons.
  5. 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 .

  1. Log in to your JupyterHub and open a terminal window.

    New terminal button.
  2. 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.

  1. Log in to your JupyterHub and open a terminal window.

    New terminal button.
  2. 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                  
  3. This is a aught file, so we'll demand to download a unix tool called "unzip" in society to unzip it.

  4. Finally, unzip the file:

                        unzip python-novice-gapminder-data.nada                  
  5. 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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel