6 ms·
Dataflow, a self-hosted Observable notebook editor
- keeganj 6y agoI'm not a data scientist, but I've been interested in the idea of a "code notebook" ever since Jupyter hit it big. I write mostly in JS/TS for application logic, so this looks like it could be really useful. Related, does anyone have any recommendations of a (Postgres) SQL "notebook"? I don't really need any visualizations, more just a markdown integrated doc that allows me to lay out the different queries I use to answer a question.
- gradys 6y agoMaybe just a Python notebook with a Postgres client library and some helper functions to keep the amount of Python in the main body to a minimum?
- Hasnep 6y agoRmarkdown notebooks can contain SQL chunks, so you'd only need to use R to configure the connection. [1] [1] https://bookdown.org/yihui/rmarkdown/language-engines.html#sql https://bookdown.org/yihui/rmarkdown/language-engines.html#s...
- keeganj 6y agoI didn't know you could write SQL directly in Rmarkdown like this, very interesting. Thanks!
- pbowyer 6y agoSame, when I've read the docs I've always got the impression that it was R only supported.
- PuddleOfSausage 6y agoThere are loads more supported via knitr. Scroll to the top of that linked page in this thread for the list.
- RocketSyntax 6y agoLots of jupyter magic `%` commands for that already https://www.datacamp.com/community/tutorials/sql-interface-within-jupyterlab https://www.datacamp.com/community/tutorials/sql-interface-w...
- simonw 6y agoWeirdly my Django SQL Dashboard project may fit the bill a bit here: you can build up a "dashboard" (which is a tiny bit notebook-like if you squint at it the right way) with multiple SQL queries on it, and save that either as a bookmark or as a "saved dashboard" with a URL. https://django-sql-dashboard.datasette.io/ https://django-sql-dashboard.datasette.io/ In my own work I've been using it for the kind of things that I would normally use a Jupyter notebook for - gathering together research on problems I'm trying to solve.
- keeganj 6y agoInteresting take, I'm not deep in the python ecosystem, but this looks like it's lightweight enough to function as a refreshable notebook. Will give this a try, thanks!
- javierluraschi 6y agoFor viz/DS/ML/AI with JS/TS is either observablehq or and IDE with custom extensions; this project looks relevant if you are already into observablehq. Shameless plug, we are building a few tools for JS to narrow down this gap as well: - https://hal9.ai https://hal9.ai (Drag&Drop / IDE) - https://marketplace.visualstudio.com/items?itemName=Hal9.hal9 https://marketplace.visualstudio.com/items?itemName=Hal9.hal... (VSCode extension) - https://observablehq.com/@javierluraschi/running-nodejs-in-observable https://observablehq.com/@javierluraschi/running-nodejs-in-o... (ObservableHQ extension) Would love to chat if you are interested in providing feedback, I'm in javier at hal9.ai. Cheers.
- shapiromatron 6y agore: sql notebook, this came up a few months ago and worked great when I played around with it: https://blog.jupyter.org/an-sql-solution-for-jupyter-ef4a00a0d925 https://blog.jupyter.org/an-sql-solution-for-jupyter-ef4a00a.... It's just a different kernel you can install to an existing jupyter instance.
- okennedy 6y agoIt's based on Spark rather than Postgresql directly, but I'm part of an effort to build a workflow system disguised as a notebook callled Vizier [1]. SQL is a first-class primitive in Vizier, and the notebook plays nice with postgres (you can load from and unload to postgres using Spark's native data loader). [1] https://vizierdb.info https://vizierdb.info
- amcaskill 6y agoI am working on a SQL-in-markdown reporting tool called evidence. It’s feels like a markdown doc that runs SQL. https://evidence.dev/ https://evidence.dev/
- keeganj 6y agoThis is almost exactly what I was imagining. Just subscribed to updates, very interested to see what this becomes!
- natrys 6y agoEmacs and Org-mode has great integration with multiple SQL implementations including Postgres (via org-babel). Org-mode tables are pretty neat, and you can have query result directly populated into tables. Read this blogpost if you are interested: https://fluca1978.github.io/2021/01/18/PostgreSQLLiterateProgramming.html https://fluca1978.github.io/2021/01/18/PostgreSQLLiteratePro...
- tlarkworthy 6y agohttps://observablehq.com/@observablehq/databases https://observablehq.com/@observablehq/databases
- qbasic_forever 6y agoI like the ipython-sql magic in Jupyter: https://github.com/catherinedevlin/ipython-sql https://github.com/catherinedevlin/ipython-sql Depending on what you're doing you might be able to get away entirely with just using it and some basic queries, i.e. no python glue code in the notebook at all. But worst case you might need a cell to open up the DB connection and make the magic aware of it, then you can execute clean and simple SQL queries in cells using the magic.
- thejosh 6y agoYeah ipython-sql is great and works well, and can use an environment variable for the connection string.
- sixdimensional 6y agoApache Zeppelin is one open source option - https://zeppelin.apache.org https://zeppelin.apache.org.
- Siira 6y agoorg-babel should fit the bill.
- robertlacok 6y agoDeepnote has native Postgres cells :) you can mix them with Python too. Disclaimer - I work there :)
- thirtyseven 6y agoI know "dataflow" is kind of a generic name, but the authors might want to consider that there is already a 7 year old Google Cloud product for running data pipelines called Dataflow.
- marcinzm 6y agoAnd a Cloudera project: https://www.cloudera.com/products/cdf.html https://www.cloudera.com/products/cdf.html And an Azure feature: https://docs.microsoft.com/en-us/azure/data-factory/control-flow-execute-data-flow-activity https://docs.microsoft.com/en-us/azure/data-factory/control-... And a Spring feature: https://spring.io/projects/spring-cloud-dataflow https://spring.io/projects/spring-cloud-dataflow
- deleted 6y ago[deleted]
- rectang 6y agoAnd an entire programming discipline. https://en.wikipedia.org/wiki/Dataflow_programming https://en.wikipedia.org/wiki/Dataflow_programming
- taftster 6y agoCame here to post the same comment. Exactly right. There are lots of projects that use the term "dataflow". To add to this, the name of this product is confusing given the context and usecase shown. I assume "dataflow" to the author means the ability to watch data being rendered on a page? To "big data" folks (like myself), the term "dataflow" tends to represent the routing and processing of data streams along an information pipeline. Not anything to do with a visual representation of a dynamic notebook.
- dataflow 6y ago> I know "dataflow" is kind of a generic name Well that's a bummer. And here I thought I was being very unique :-)
- 6y ago
- whoevercares 6y agoHow does this related to data flow or it’s just a brand name
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]
- RocketSyntax 6y agoHelp me understand what the page being rendered is doing. Is that like an interactive app you are serving for user input?
- qbasic_forever 6y agoIt's an observable notebook: https://observablehq.com/ https://observablehq.com/ Basically a notebook where you write JS code and see the results immediately rendered in the notebook. In this case it's being served locally instead of requiring you to use their service website. If you've ever used Jupyter or IPython this is very similar (code notebooks) but with some interesting changes in philosophy and more of a Javascript implementation instead of python. What might be tripping you up is that in this demo the observable notebook isn't showing the code cells, only the outputs. The code is in the editor on the left and the output on the right is the result of running the code as an observable notebook. In some ways it is like a simple interactive web app.
- Isthatablackgsd 6y agoIs that similar concept to Overleaf for LaTeX?
- kragen 6y agoLaTeX doesn't really support interactive data visualizations or reactive re-rendering, and it's a pretty difficult environment to do things like read a CSV data file and do a linear regression in. Observablehq is closer to Jupyter, Excel, R Studio, Octave, or Tk than LaTeX.
- Isthatablackgsd 6y agoI'm sorry that I didn't specify. What I meant of a "live WYSIWYG" like Overleaf compile tex on the fly. I hope I am clear of what I meant. Or I am misreading you?
- 6y ago
- simonw 6y agoThis project looks fantastic. I adore Observable notebooks, but the one thing that makes me hesitate in using them for everything is that the editor component itself is closed-source and only available on https://observablehq.com/ https://observablehq.com/ They're great open source ecosystem supporters - they released their runtime, their parser, their standard library and all sorts of other stuff through https://github.com/observablehq https://github.com/observablehq - but the editor itself is their proprietary sauce. I totally support their decision on this - it's what they're building their business around, and I want them to be successful. But as a user it does give me pause. This project from Alex Garcia looks like a fix for exactly that. Having more-than-one editor for their notebook format (and an open source option a that) resolves my hesitancy in leaning hard into their ecosystem. I don't even see it as a competitor to ObservableHQ - the hosted Observable editor has collaboration features that don't even make sense for a local running version. Plus, Dataflow has some great ideas of its own - in particular the live file attachments thing.
- edtechdev 6y agoYeah the lack of open source prevented me from committing to observable, too, so I look forward to trying dataflow out. Just in case this is of interest to others, some other open source browser-based computational notebook tools include: * Starboard https://starboard.gg/ https://starboard.gg/ * And of course there's always Jupyter, but it requires a server component And this isn't the same thing, more of a javascript playground (open source alternative to codepen and the like), but see also Slingcode: https://slingcode.net/ https://slingcode.net/
- nautilus12 6y agoI see all these notebooks products and I honestly don't know how any of them plan to compete with AWS...no body wants self hosted anymore, everyone just wants to pay AWS or databricks for it. Can other people chime in? Maybe i'm just working at the wrong place.
- simonw 6y agohttps://observablehq.com/ https://observablehq.com/ is a cloud hosted platform already. This thing - Dataflow - is an open source run-on-your-own-machine alternative to the official Observable hosted solution, taking advantage of the fact that Observable itself is JavaScript code with some special sauce that's available as open source runtime/parser libraries.
- qbasic_forever 6y agoIt's running on localhost here and I presume that's their intended use case for this feature. Localhost is critical for development--imagine if VS code wouldn't work unless you were connected to Github.com. This is fixing that issue with observable notebooks so now you can run and develop your notebook locally without depending directly on the internet or their cloud service.
- nautilus12 6y agoI'm increasingly seeing companies embrace "dont develop locally". Personally the idea of having to sign into AWS console to develop makes me cringe, but i'm seeing more people just be ok with it.
- simonw 6y agoHaving been responsible for the shared local development environment system at a 100+ engineer company I can tell you exactly why: the amount of time and money wasted fixing individual developer environments is astronomical. If someone's environment isn't working, having a button they can click to get a brand new working one in the cloud is an enormous time-saver.
- mistidoi 6y agoAs a total Observable/Bostock stan who works with HIPAA protected data, I love this.
- FormFollowsFunc 6y agoI've been looking for something like this for data vis exploration. Compared to Observable accessing local data files is more convenient. Currently I use a Jupyter notebook along with Pandas and Matplotlib. I'm not a huge fan of Matplotlib so I would prefer to use Plot or Vega Lite API and Pandas could be replaced with Danfo.js or Arquero.
- d--b 6y agoI am also working on an alternative: https://www.jigdev.com https://www.jigdev.com It’s the same idea except that cells are spread out on a 2d canvas with tabs similar to excel.
- lejohnq 6y agoThis is pretty awesome. Feels like a streamlit for the javascript world.
- chrisweekly 6y agoOK! I can't put off creating an observablehq acct any longer. ... Done. Stoked to dive in this weekend!
- Galanwe 6y agoDoes anyone know of a good reusable jupyter front-end? I have a farm of jupyter kernels that I can run on demand, and would like to integrate a UI for these kernels on my React website. I've had a look at the Jupyter default UI but it uses Luminos components which are basically not compatible with React. Also had a look at nteract components, but their projects seem dead. Anyone working on something similar? Clean react components to act as UI for the jupyter protocol.