In IBM Q-Experience how can I upload a data file that I intend to read from the python code?
Asked
Active
Viewed 718 times
1 Answers
4
If you go to the Qiskit Notebooks section, you will see this button
If you click import you can chose to upload the file from your computer into IQX.

met927
- 3,251
- 1
- 9
- 22
-
Yes, but one can only upload ipynb files, not any other file, like a csv file. – Amitava Chakraborty Nov 20 '19 at 14:33
-
1I followed this method and I was able to upload a csv, you just cannot open them inside IQX. Are you receiving an error message when you try to? – met927 Nov 20 '19 at 14:39
-
2no, but it does not show it. So if I upload a csv this way, I can access it from the code as if its is in the same directory as the code, is it? – Amitava Chakraborty Nov 20 '19 at 18:38
-
1amazing!!, it did work! Many many thanks met927! – Amitava Chakraborty Nov 20 '19 at 18:55
-
2I had to close and re-open my notebook for it to see an imported .py file, but then it worked. Thanks for pointing out that Import can be used for non-ipynb files! – Max Apr 24 '20 at 22:30