Nice notebook

  • Thread starter Deleted member 43669
  • Start date
D

Deleted member 43669

Guest
It occurred to me to play a little bit with the Wordle game. I started writing some code, but then I had to leave a long calculation running- I wanted to shut down my laptop, so I rsync'ed the code to a cloud host I have, and let it running in the Python REPL within a screen session.

That got me thinking that maybe I should set myself up a JupyterHub server or something like that.

I think the code I'll be running with be more complex than the typical data analysis tasks- defining many functions, classes... and even writing some tests. I'd like a good editing experience (better than a textarea), and being able to easily sync my code to a git repo. Ideally, sync'ing code between the environment and my laptop without having to create fake commits would be awesome- but that always makes things very complex...

Also, this should be a persistent notebook that I can leave running and reattach at a later time. I *could* add ; mail_me() so I am pinged when the calculation is over, but ideally I'd like something like if a cell has been running more than 10s, I get a nice box to get notified when it's done (with the results?).

I assume I can cobble something together with JupyterHub... or embrace remote VS Code and screen... but I'm wondering if anyone has used a really shiny setup for that kind of thing.

My default option for language for the kind of projects that would benefit from this is Python... but if there's a really swanky setup for some other language, I can consider that...
 

Apteris

Ars Tribunus Angusticlavius
9,589
Subscriptor
You mention a couple of things in your posts:

1. Remote editing -- is this a requirement? If so, have a look at JetBrains Gateway -- it's a tool that lets you set up a JetBrains IDE backend on a remote machine of your choice. Your laptop is then a thin terminal.

2. Version control -- you'll need to git pull and git push. I don't know of a way around this.

3. Offloading the compute -- either PyCharm Professional or DataSpell will let you run your Jupyter notebooks on a Jupyter server of your choice. I like JetBrains IDE in general, and this new DataSpell thing is tailored specifically to data science. Give it a look-see. At the link I posted there is a GIF that shows how it works.

This space is heating up, from what I'm seeing, so I'm sure there are many other possible approaches as well. Myself, I'm keen to play around with Mathematica Wolfram notebooks.
 
D

Deleted member 43669

Guest
1. Remote editing -- is this a requirement? If so, have a look at JetBrains Gateway -- it's a tool that lets you set up a JetBrains IDE backend on a remote machine of your choice. Your laptop is then a thin terminal.

Well, not really. It would be OK to load an editor in a browser tab... if the editor is not a textarea (e.g. it's Monaco).

2. Version control -- you'll need to git pull and git push. I don't know of a way around this.

Well, syncthing, Dropbox, etc. However, all file sync programs carry a big (justified) warning that dumb bidirectional sync can mess up a git repo. There's also sshfs and similar stuff, but it doesn't perform well.

One dream of mine is for this kind of sync to just work. From what I infer, Google employees have this ability. Probably something like https://github.com/tkellogg/dura could be rigged to make it work.

But I'm really derailing my own thread. This is not a hard requirement...

3. Offloading the compute -- either PyCharm Professional or DataSpell will let you run your Jupyter notebooks on a Jupyter server of your choice. I like JetBrains IDE in general, and this new DataSpell thing is tailored specifically to data science. Give it a look-see. At the link I posted there is a GIF that shows how it works.

This space is heating up, from what I'm seeing, so I'm sure there are many other possible approaches as well. Myself, I'm keen to play around with Mathematica Wolfram notebooks.

Yeah. I'm not a huge fan of Jetbrains products. VS Code is also playing in this area (support of Jupyter Notebooks, remote editing)... but the quasi-open source approach of both bothers me a bit.

I'm just surprised that Googling Jupyter Notebook Kubernetes has returned some results, but nothing really mindblowing. The pieces are there, but they are not being put together yet... I guess someone's working on it stealthily...