Unable to upload csv on jupyter

Asked 2 years ago, Updated 2 years ago, 128 views

When I click the upload button in the upper right corner of jupyter and select the csv file I want to upload, there is no response.Is there a solution?

Currently, the csv file can be placed directly in the desired folder with the Move button.
However, it is inconvenient that the original file itself has been moved.

csv jupyter-notebook

2022-09-30 21:32

1 Answers

The supported browsers for Jupyter Notebook are Chrome, Safari, FireFox (See).If you are using the other IE or Edge browsers.

Jupyter Notebook is designed to launch the default browser, but your company may not be able to set the default browser as desired.If so, it must be configured in jupyter_notebook_config.py (Windows reference).

If changing your browser doesn't improve, it's not a direct solution, but Jupiter can use shell commands, so you can copy them with shell commands.

# For Linux, Mac:
!cp path_to_csv/*.csv.
# For Windows:
!copy path_to_csv\*.csv.

Also, in Python, it's a little tricky at first to write a routine that copies data, but it can be automated from now on.

 from pathlib import Path
import shutil

files=Path('path_to_csv').glob('*.csv')
For fin files:
    print(f)
    shutil.copy(f, '.')


2022-09-30 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.