# SWISH and loading csv files

**URL:** <https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929>\
**Category:** General\
**Created:** [April 8, 2025, 11:59am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929 "2025-04-08T11:59:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbmele](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/gbmele/32/6715_2.png) [@gbmele](https://swi-prolog.discourse.group/u/gbmele)\
**Post date:** [April 8, 2025, 11:59am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/1 "2025-04-08T11:59:59Z")

</div>

Hi there  
is there way of loading csv files into SWISH, (ideally from the computer i am on).  
i wont be able to load SWISH locally at work…  
Thanks very much

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [April 8, 2025, 1:23pm UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/2 "2025-04-08T13:23:24Z")

</div>

> [@gbmele](#):
>
> is there way of loading csv files into [SWISH](https://swish.swi-prolog.org/)

Yes, but only from a URL. See [SWISH -- SWI-Prolog for SHaring](https://swish.swi-prolog.org/example/data_source.swinb) for an example that loads a CSV file from GitHub and shows a chart.

---

<div class="post-metadata">

**Author:** ![gbmele](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/gbmele/32/6715_2.png) [@gbmele](https://swi-prolog.discourse.group/u/gbmele)\
**Post date:** [April 9, 2025, 3:57am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/3 "2025-04-09T03:57:17Z")

</div>

thanks very jan.

I couldn’t get the examples working but now I can. my apologies!!

I was able to recreate my own csv on github but how do I refresh the data source? and  
downloading results as csv give internal server error.

---

<div class="post-metadata">

**Author:** ![Boris](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/boris/32/7486_2.png) [@Boris](https://swi-prolog.discourse.group/u/Boris)\
**Post date:** [April 9, 2025, 5:55am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/4 "2025-04-09T05:55:17Z")

</div>

I know this does not answer your questions, but what prevents you from installing SWI-Prolog on the same machine where your files are? SWISH is great but you will be banging your head against the wall quite a bit if you want to use your local file system with SWISH.

Note the difference between SWISH and SWI-Prolog.

---

<div class="post-metadata">

**Author:** ![gbmele](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/gbmele/32/6715_2.png) [@gbmele](https://swi-prolog.discourse.group/u/gbmele)\
**Post date:** [April 9, 2025, 6:28am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/5 "2025-04-09T06:28:53Z")

</div>

Thank you boris  
My work will not allow local installations.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [April 9, 2025, 8:12am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/6 "2025-04-09T08:12:30Z")

</div>

> [@gbmele](#):
>
> I was able to recreate my own csv on github but how do I refresh the data source?

Use the URL that contains the commit hash?

> [@gbmele](#):
>
> and downloading results as csv give internal server error.

Thanks for reporting. That facility was broken. Fixed. You may need to do a hard reload to make sure to get the latest version of `swish.js`

All in all, I doubt SWISH is going to work for what you want. The public installation aims at lots of users and is mostly stateless. You can of course run your own SWISH service, which you can configure to allow for all these things. I understand that is hard for you ☹ If you want serious computation and process files though, you’ll need the local version or a specifically configured SWISH instance. You can of course run either on a cloud machine or in a virtual machine, etc.

---

<div class="post-metadata">

**Author:** ![gbmele](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/gbmele/32/6715_2.png) [@gbmele](https://swi-prolog.discourse.group/u/gbmele)\
**Post date:** [April 9, 2025, 9:00am UTC](https://swi-prolog.discourse.group/t/swish-and-loading-csv-files/8929/7 "2025-04-09T09:00:37Z")

</div>

Thank you very much Jan.  
getting csv in and then csv out will make me happy. 🙂
