data-science

Data science, data analysis, and machine learning in Clojure https://scicloj.github.io/pages/chat_streams/ for additional discussions
2020-04-27T11:23:26.141800Z

Deep Learning for Programmers | 0.17.0 | Tensors and ND arrays chapter (with Deep Diamond) https://aiprobook.com/deep-learning-for-programmers?release=0.17.0&src=cslack

🚀 1
4
val_waeselynck 2020-04-27T15:00:03.143600Z

Hi there! Oz question: is there any reason why it would be impossible to use oz/view! on a remote machine via an SSH tunnel? I need to work this way because the source data I'm working on does not fit on my machine.

daveliepmann 2020-04-28T10:57:53.153300Z

@val_waeselynck How did you configure the browser? Did you configure xdg_open to open a browser back over the tunnel?

val_waeselynck 2020-04-28T16:50:02.161400Z

No I didn't configure anything. I just manually open the browser at the right time on my dev laptop.

daveliepmann 2020-04-28T17:04:46.162500Z

Neat

val_waeselynck 2020-04-27T15:04:52.143800Z

Maybe @metasoarous?

2020-04-27T15:13:46.144Z

Should be able to

2020-04-27T15:14:17.144200Z

Just don't send all the data over 😉

daveliepmann 2020-04-27T15:20:26.144500Z

Are you running oz/view! on the remote machine, or just storing the data remotely, grabbing it with clojure, and running oz/view! locally?

daveliepmann 2020-04-27T15:22:59.144700Z

I feel like you mean the former (otherwise the data has to be in local memory anyway), which makes me suspect Oz would start the webserver on the remote machine, which might not work?

val_waeselynck 2020-04-27T16:23:32.144900Z

@daveliepmann the 1st one indeed, with an ssh tunnel to the Oz port

daveliepmann 2020-04-27T16:35:08.145100Z

Let me know how it goes, sounds fun 🙂

val_waeselynck 2020-04-27T17:28:35.145300Z

@daveliepmann Well, for now, it goes absolutely nowhere, as os/view! just hangs. I'm suspecting it's trying to open a browser, which might be disappointing on an EC2 instance

val_waeselynck 2020-04-27T17:30:25.145500Z

@metasoarous do you confirm it should work, now that I've clarified how I'm using oz/view! as per @daveliepmann's question?

val_waeselynck 2020-04-27T17:40:50.145700Z

@daveliepmann @metasoarous OK I got it to work, I probably had an issue of how I configured my SSH tunnel. Let me investigate the exact cause of the 1st failure I had and come back to you.

val_waeselynck 2020-04-27T18:13:42.145900Z

OK, I haven't been able to reproduce the initial issue, so I'm guessing oz/view! hanging was due to an initial error I had (missing an xdg-open lib on the OS) which probably put Oz in a bad state. Aside from that, working over the SSH tunnel works well. One thing that tripped me over was that I needed to load the webpage before calling oz/view! , which is a problem you don't have on a local machine as it will open the webpage for you in a browser.

val_waeselynck 2020-04-27T18:14:55.146100Z

I'm already in love with the reactive "plot from your REPL" UX, thanks for the good work @metasoarous!

2020-04-27T23:59:45.146300Z

Awesome! That's great to hear. Thanks for the feedback! 😊