< 112022-02-12⋎13 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
15:55symbioquine[m]I was just playing with JupyterLite + farmOS and thought a bit more involved of an example might be fun;
15:55*uploaded an image: (181KiB) < libera.ems.host/_matrix/media/r0/downloa >
15:57symbioquine[m]gist.github.com/symbioquine/1ad8708ddf83
15:59ludwa6[m]yes! while CSV upload is a fundamental need, it is the ease of applying python's standard dataSci libes (e.g. pandas, matplotlib, plotly, etc.) for data analysis and visualisation that will be such a quick & huge win with this JuypterLite facility.
15:59mstenta[m]wow
16:01ludwa6[m]deploy it on farmier, mstenta , and that will instantly elevate the service head&shoulders above all those other cloud-based commercial solutions on the market today
16:01mstenta[m]what excites me most about JupyterLite is how it can compliment the features of farmOS, and provide a "bleeding edge" place to experiment :-)
16:01mstenta[m]i'm planning on it ludwa6 ! :-D
16:02ludwa6[m]"bleeding edge"? as in advancing the state-of-the-art for farm data management, yes indeed... But not in terms of technology, i hope?
16:04mstenta[m]specifically i am thinking about the CSV importers and graphing (which symbioquine just demonstrated) - this is a place to experiment with ideas before (or in lieu of / alongside) making farmOS/Drupal modules in the farmOS UI itself
16:05mstenta[m]of course, this could all be done with Python scripts and custom apps already - but this lowers the barrier and provides an easier way to share them
16:06ludwa6[m]mstenta[m]: oh, yeah: it makes the whole idea of writing import / export/ reporting modules kinda old-fashioned, doesn't it? puts the power of data-driven farming right in the hands of farmers, where it belongs.
16:06symbioquine[m]For example, I might in the future do one-off data manipulation scripts [like this](farmos.discourse.group/t/translating-rot) in JupyterLite.
16:06mstenta[m]indeed!
16:07symbioquine[m]Then folks could just copy/paste/customize without worrying as much about recreating my server environment.
16:15justgav[m]Good afternoon :). I'm in the process of loading up some seed genetic, and have done a few manually, noticed I can export via the asset viewer, is there a way to import the CSV or will I need to do it via the API?
16:16mstenta[m]justgav: yea farmOS v2 does not have a built-in CSV importer like v1 did (yet)
16:16mstenta[m]but there is a lot of good brainstorming for options in this forum topic: farmos.discourse.group/t/csv-importers-i
16:16mstenta[m]in general, though, yes: you need to use the API
16:17justgav[m]Okay, I'll write a JSON importer then, and bring in them in.
16:17symbioquine[m]<ludwa6[m]> "oh, yeah: it makes the whole..." <- In some ways, yes, but there's a balance there. Some features should centrally maintained for the whole community - and be versioned and have automated tests as part of their development process. Also many users won't be comfortable with the code-centric interface represented by JupyterLite.
16:18mstenta[m]yea - this gives us a very wide spectrum of possibilities! that's sort of what i meant by "bleeding edge" earlier... jupyterlite can allow folks to experiment with ideas which may eventually become modules!
16:20mstenta[m]symbioquine: would it make sense to open some issues on drupal.org/project/jupyterlite to sketch out next steps
16:21symbioquine[m]Yeah, sounds good
16:21mstenta[m]that's the only way i can keep things organized these days :-)
16:21symbioquine[m]I fixed the issue with the trailing slash in the url.
16:22mstenta[m]oh nice!
16:22symbioquine[m]The only other major issue I know of is the potential for direct access to the JupyterLite artifacts.
16:23mstenta[m]mm yea
16:23mstenta[m]oh was curious (haven't looked at your packaged code yet): does it include anything in the "content" directory, like Don's demo did?
16:24symbioquine[m]mstenta[m]: No
16:24mstenta[m]i feel like it should be empty personally
16:24mstenta[m]ok cool
16:24symbioquine[m]Also, I'm actually having trouble reproducing that access issue...
16:24mstenta[m]i'd also like to open some feature requests around potentially tying into drupal file management...
16:25mstenta[m]donblair: and I were chatting, he made this good point:
16:25mstenta[m]> i do think that jupyterlite as it currently works may be ... confusing to folks in terms of how its 'local files' behave
16:25mstenta[m]s/://, s///
16:25mstenta[m]my replies...
16:25symbioquine[m]mstenta[m]: I'm happy to help maintain/shepherd the module, but I don't know much of that sort of stuff I'll be taking on personally...
16:26mstenta[m]> i wonder if the drupal jupyterlite module could somehow help to "persist" files...... (full message at libera.ems.host/_matrix/media/r0/downloa)
16:27mstenta[m]of course! no expectations - i appreciate all you've done already!
16:27mstenta[m]these are the kinds of things i might open issues for, as next steps...
16:28mstenta[m]taking those ideas a step further... another idea i had was: imagine if a farmOS module could ADD scripts to jupyterlite
16:28mstenta[m]i could see this being useful for "official" collections of scripts perhaps
16:29mstenta[m]maybe unnecessary though... one could still just "upload file" that they download from such a repo, without necessarily installing any modules
16:29mstenta[m]there are also some caching considerations to sort through - i've noticed that jupyterlite does not detect changes to the files after it's been loaded - everything is saved in indexeddb until you manually clear it (it seems)
16:30mstenta[m](might just copy and paste this chat into a new issue to sort through ideas as a first step..)
16:31justgav[m]farmos.org/development/api Is there any more documentation or should I go schema surfing :P
16:32mstenta[m]haha good question justgav - that's all the docs we have, but farmOS's API is built on Drupal's JSON:API, which has a lot of docs here: www.drupal.org/docs/core-modules-and-the
16:32mstenta[m](we should really add a link to that from our docs)
16:36mstenta[m]symbioquine: do you have your repo easily accessible? can you push the 1.x branch to drupal.org?
16:37mstenta[m]i'll create a 1.x dev release (needed to create issues that reference it)
16:37justgav[m]That's okay, don't mind digging putting it together as I go
17:50*uploaded an image: (223KiB) < libera.ems.host/_matrix/media/r0/downloa >
17:50symbioquine[m]gist.github.com/symbioquine/7641a2ab2587
17:52*uploaded an image: (998KiB) < libera.ems.host/_matrix/media/r0/downloa >
19:01mstenta[m]😲

< 112022-02-12⋏13 >