| 00:00 | * | jonasbits has joined |
| 03:54 | * | farmBOT has joined |
| 10:11 | * | RogerioMbuli[m] has joined |
| 10:11 | RogerioMbuli[m] | curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate. |
| 10:37 | * | jonasbits_ has joined |
| 10:41 | * | jonasbits has quit (*.net *.split) |
| 10:41 | * | cosine has quit (*.net *.split) |
| 10:46 | * | cosine has joined |
| 13:01 | ludwa6[m] | g'day, Sports Fans: exciting developments afoot on the API front-end front: www.youtube.com/watch?v=87jqCTMwsXk |
| 13:06 | ludwa6[m] | JupyterLite and farmOS : looks like a powerful combo to me! Would it be possible, mstenta , to configure my v2.x Farmier instance to allow API calls from JupyterLite running on my desktop? |
| 14:04 | mstenta[m] | ludwa6: i know! isn't that coool?? @donblair blew my mind yet again |
| 14:07 | mstenta[m] | i am taking care of a sick kiddo today - might not have a chance to play with it more... i was hoping to show it on today's dev call! but not sure i'll be there |
| 14:07 | ludwa6[m] | mstenta[m]: like always! can't wait to try this proof-of-concept on mine |
| 14:08 | mstenta[m] | re: your instance... i only need to "bless" the CORS config on your instance if you are connecting to it through a browser... you said you're running JupyterLite on your desktop? do you mean you are running a downloaded copy in your browser? i'm not sure that it's possible to configure CORS for that to work because it's not a public domain you're running on |
| 14:08 | mstenta[m] | Don's example was running on his GitHub Pages URL |
| 14:08 | ludwa6[m] | mstenta[m]: ooh, good luck w/ thaet. |
| 14:09 | mstenta[m] | (she's sleeping currently - wish i could too... been up with her since 2:30 am) :-( |
| 14:09 | ludwa6[m] | to your Q: i've got the full Jupyter Notebooks / Jupyter Labs stack on my machine... But i want this in cloud, for my farmer to access from anywhere. |
| 14:10 | mstenta[m] | oh ok - so i don't think i need to do anything on your 2.x instance for Jupyter to work |
| 14:10 | mstenta[m] | only JupyterLite |
| 14:10 | ludwa6[m] | Could be on github, that would be fine. |
| 14:10 | mstenta[m] | (when in a browser) |
| 14:10 | mstenta[m] | (but i'm not super familiar with Jupyter, so maybe i'm wrong... or maybe there are other considerations there) |
| 14:10 | mstenta[m] | worth a try as-is perhaps |
| 14:11 | mstenta[m] | you can just use Don's instance - did he share it with you? |
| 14:11 | mstenta[m] | to play around with in the meantime |
| 14:11 | ludwa6[m] | mstenta[m]: OK no worries, MS: will be chatting w/ Don about this later today i guess... And also paul121 , as it happens, about my data migration |
| 14:12 | ludwa6[m] | mstenta[m]: I have his JupyterLite instance loaded in my browser; will ask if he can give me a test account on his farmOS instance. |
| 14:13 | mstenta[m] | oh i can add his domain to your 2.x instance! |
| 14:13 | mstenta[m] | then it will work |
| 14:13 | mstenta[m] | doing that now... |
| 14:13 | ludwa6[m] | ah: nice! |
| 14:14 | mstenta[m] | yesterday i was hacking around trying to wrap jupyterlite in a module - so you could just do [myfarmOSurl]/jupyterlite :-D |
| 14:14 | mstenta[m] | still some kinks to iron out... but that would allow it to work without requiring cross-domain config |
| 14:15 | mstenta[m] | (and could enable some really neat ideas!!) |
| 14:15 | mstenta[m] | if this could be an alternative to building CSV importers in Drupal.... wow! |
| 14:15 | mstenta[m] | although it is still kind of "advanced" to use... so we'll have to see what shakes out |
| 14:16 | ludwa6[m] | mstenta[m]: that would be coool |
| 14:16 | mstenta[m] | (imagine people being able to share/import CSV importer scripts for specific use-cases!!) |
| 14:16 | ludwa6[m] | mstenta[m]: yes! let's make this work. |
| 14:16 | mstenta[m] | i was hoping to comment on the CSV importer forum topic with some of these ideas but life has redirected me - if you or Paul or Don want to please do! |
| 14:17 | mstenta[m] | i'm sure Farmer Ed and Pat would be interested too - another nice alternative to compliment node-red perhaps |
| 14:18 | mstenta[m] | ok i think your 2.x instance is all set... should be able to connect now |
| 14:18 | ludwa6[m] | mstenta[m]: count on it! |
| 14:22 | ludwa6[m] | mstenta[m]: so: i just need to change URL and cred codes in the 1st code block to my own, for this to work? and if so: are the credentials kept secure? |
| 14:23 | mstenta[m] | yes and yes - they are stored in your browser's local "indexed db database" - never sent anywhere else |
| 14:23 | mstenta[m] | (if someone stole your computer they would be able to see them, however) |
| 14:50 | ludwa6[m] | <mstenta[m]> "yes and yes - they are stored in..." <- hm: tried, but it threw an error on running that first block. can share if you care to see |
| 14:51 | mstenta[m] | please do |
| 14:52 | mstenta[m] | (make sure it doesn't include your pw) |
| 14:54 | ludwa6[m] | the traceback does not, it seems. What, do i just copy/ paste here in Eleements? |
| 14:54 | mstenta[m] | sure, unless it's ginormous |
| 14:55 | ludwa6[m] | ---------------------------------------------------------------------------... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 14:55 | mstenta[m] | ok well i don't think it's a cross-domain issue - must be something else - probably need Don's help to debug |
| 14:56 | ludwa6[m] | mstenta[m]: ok, will pass it on to him. |
| 15:14 | symbioquine[m] | <mstenta[m]> "re: your instance... i only need..." <- I think it should work even with non-public/fake domains as long as the browser trusts them. e.g. you could add a domain to your router's static DNS entries or computer's hosts file and generate a self-signed certificate for it. Then as long as your browser finds that domain (disable DNS over HTTPS) and trusts it (add the certificate to your system/browser trust store) the CORS stuff |
| 15:14 | symbioquine[m] | should work. |
| 15:16 | mstenta[m] | makes sense! i was wondering if ludwa6 had downloaded the jupyterlite files and just opened index.html in the browser... in which case there wouldn't be any domain at all (right?) - not serving through apache / `localhost` |
| 15:16 | mstenta[m] | in that case i'm not sure if/how it would work |
| 15:20 | ludwa6[m] | mstenta[m]: A: i just loaded up the farmos.ipynb file at edgecollective.io/jupyterlite/lab/index. , changed the URL and id/pwd codes to my own in that 1st code block and ran it. failed as per above traceback |
| 15:20 | ludwa6[m] | of course i have no idea how this can possibly work... Was just following the directions given |
| 15:21 | mstenta[m] | yup yup! symbioquine was commenting on the cors stuff... not your error |
| 15:26 | symbioquine[m] | <mstenta[m]> "makes sense! i was wondering..." <- Oh, yeah. Agreed that it does need to be served over https by something. Forgot that bit. |
| 15:26 | mstenta[m] | ah and yea i forgot https is required too! |
| 15:27 | mstenta[m] | > yesterday i was hacking around trying to wrap jupyterlite in a module - so you could just do [myfarmOSurl]/jupyterlite :-D |
| 15:27 | mstenta[m] | symbioquine fyi this is what i was working on when i asked you about SPAs :-) |
| 15:27 | symbioquine[m] | Cool! |
| 15:27 | mstenta[m] | it is not as easy as i was hoping |
| 15:28 | symbioquine[m] | I'm not familiar with jupyterlite, but I'm guessing it's one of those Math/Sci notebook engines like Sage or Mathematica? |
| 15:28 | mstenta[m] | yea check out the vid above if you have a chance! |
| 15:28 | mstenta[m] | > g'day, Sports Fans: exciting developments afoot on the API front-end front: www.youtube.com/watch?v=87jqCTMwsXk |
| 15:32 | symbioquine[m] | <mstenta[m]> "it is not as easy as i was..." <- What challenges did you run into? |
| 15:34 | ludwa6[m] | <symbioquine[m]> "I'm not familiar with jupyterlit..." <- "Project Jupyter's operating philosophy is to support interactive data science and scientific computing across all programming languages via the development of open-source software" sayth wikipedia... And it's really become the way to share DataScience projects, in the interest of Replicable Research. |
| 15:35 | mstenta[m] | > What challenges did you run into? |
| 15:35 | mstenta[m] | Mainly just getting all the files to be in a place where JupyterLite can find them, while still keeping them in the Drupal filestructure and using a Drupal route |
| 15:36 | symbioquine[m] | ah |
| 15:36 | mstenta[m] | I think I just need to dig into the JupyterLite docs a bit to understand how to configure a non-default setup |
| 15:41 | symbioquine[m] | Looks like there's a `jupyter-config-data.baseUrl` that maybe needs to be set... |
| 15:42 | mstenta[m] | ah! |
| 15:42 | * | sent a json code block: libera.ems.host/_matrix/media/r0/downloa |
| 15:42 | symbioquine[m] | jupyterlite.readthedocs.io/en/latest/dep |
| 15:42 | mstenta[m] | wow thanks symbioquine |
| 15:42 | symbioquine[m] | Not sure what `appUrl` does either |
| 15:42 | mstenta[m] | i'll try that out when i have a chance |
| 16:00 | symbioquine[m] | I think it's working just with the code I shared before; |
| 16:00 | * | uploaded an image: (194KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 16:00 | mstenta[m] | wow! |
| 16:01 | mstenta[m] | i have a module started, do you want to add a commit to get the commit credit? :-D |
| 16:01 | symbioquine[m] | I just replaced the contents of my SPA web artifacts with the contents of the `_output` directory obtained by doing `poetry run jupyter lite init` |
| 16:01 | symbioquine[m] | mstenta[m]: Sure |
| 16:02 | symbioquine[m] | I only tested as far as getting the OAuth token, so there could be other stuff broken of course :) |
| 16:02 | mstenta[m] | github.com/mstenta/jupyterlite |
| 16:04 | mstenta[m] | beyond that, on my local, i basically downloaded the contents of Don's gh-pages branch into a `jupyterlite` subdirectory within that |
| 16:04 | mstenta[m] | github.com/edgecollective/jupyterlite/tr |
| 16:04 | mstenta[m] | just as a proof of concept |
| 16:04 | mstenta[m] | still need to figure out a better way to build it |
| 16:04 | mstenta[m] | and ideally without the demo content |
| 16:04 | symbioquine[m] | Cool |
| 16:04 | symbioquine[m] | yeah |
| 16:05 | mstenta[m] | i'd be fine just committing directly to the repo as a start |
| 16:05 | symbioquine[m] | Also, I don't think we should even need OAuth at the point it's hosted on the same server. |
| 16:05 | mstenta[m] | true! |
| 16:06 | mstenta[m] | the one thing i thought of: it's still possible to go directly to `/sites/all/modules/jupyterlite/jupyterlite` in the browser - which bypasses the access permission |
| 16:06 | mstenta[m] | so i was thinking we may want to omit the `index.html` and serve it via the route instead |
| 16:06 | symbioquine[m] | Hmmm |
| 16:07 | symbioquine[m] | or add .htaccess file |
| 16:07 | mstenta[m] | oh yea or that |
| 16:07 | mstenta[m] | by the way, this worked in my controller: |
| 16:07 | * | sent a code block: libera.ems.host/_matrix/media/r0/downloa |
| 16:07 | mstenta[m] | (+ `use Symfony\Component\HttpFoundation\Response;`) |
| 16:08 | mstenta[m] | (learned that if you just return a `Response`, it bypasses Drupal's rendering pipeline entirely, so you can take over the whole response) |
| 16:08 | symbioquine[m] | Interesting |
| 16:09 | mstenta[m] | but... that created an infinite loop in my browser/docker because JupyterLite kept trying to find files that weren't there :-) |
| 16:09 | mstenta[m] | so consider that a warning ;-) |
| 16:10 | symbioquine[m] | Yeah, my inclination would be to go the direction I shared before where the controller is basically doing dumb static hosting. |
| 16:10 | symbioquine[m] | (maybe with some access control) |
| 16:10 | symbioquine[m] | That's nice because it should be pretty version (or even application) agnostic with regards to what's being hosted. |
| 16:10 | mstenta[m] | yea i think you're probably right... because it's more than just a SPA - it wants to load other files and stuff too |
| 16:11 | symbioquine[m] | Yeah |
| 16:12 | mstenta[m] | fyi i was thinking we can push this to a new drupal.org project! |
| 16:13 | symbioquine[m] | makes sense |
| 16:13 | mstenta[m] | there's an existing one, but it's dead, and for jupyter, not jupyterlite (different enough i think) |
| 16:13 | mstenta[m] | use Symfony\Component\HttpFoundation\Response; |
| 16:13 | mstenta[m] | * www.drupal.org/project/jupyter |
| 16:21 | symbioquine[m] | My inclination would be to initially check in the built jupyterlite dist just to get things working/installable as quick as possible |
| 16:21 | symbioquine[m] | ... but it's 65 MB |
| 16:21 | symbioquine[m] | What do you think? |
| 16:25 | mstenta[m] | phew! |
| 16:25 | mstenta[m] | that's big haha |
| 16:27 | mstenta[m] | how about we make a new branch (`1.x-dist`) that includes it... but maybe we can find a better way |
| 16:27 | symbioquine[m] | Sounds good |
| 16:28 | mstenta[m] | (gave you access to push to the repo fyi) |
| 16:38 | symbioquine[m] | github.com/symbioquine/jupyterlite/tree/ |
| 16:38 | symbioquine[m] | Seems to be installable/working for me |
| 16:39 | mstenta[m] | amazing! |
| 16:40 | * | donblair[m] has joined |
| 16:41 | donblair[m] | OMG symbioquine amazing work!! |
| 16:42 | symbioquine[m] | We can do a development/release branch for the build similar to what I demonstrate in github.com/symbioquine/farmOS_vue_page_d |
| 16:43 | mstenta[m] | awesome! i was thinking about suggesting that too! |
| 16:43 | symbioquine[m] | github.com/symbioquine/farmOS_vue_page_d |
| 16:52 | paul121[m] | <mstenta[m]> "(learned that if you just return..." <- ohhh interesting! |
| 16:53 | symbioquine[m] | e.g. github.com/symbioquine/jupyterlite/blob/ |
| 16:55 | paul121[m] | so that `/jupyterlite` path is kinda acting like a file server? for all the assets it needs? |
| 16:56 | symbioquine[m] | Yep |
| 16:56 | paul121[m] | loading more than just the `index.html` I see |
| 16:57 | mstenta[m] | symbioquine: maybe we could use a similar approach to downloading the jupyterlite library files that we did for `farmOS-map` |
| 16:57 | mstenta[m] | (hmm although still need to be "built" somewhere) |
| 16:57 | mstenta[m] | github.com/farmOS/farmOS/blob/2.x/compos |
| 17:01 | symbioquine[m] | Dev call now at meet.jit.si/farmos-dev if folks are interested... |
| 17:01 | symbioquine[m] | * Dev call is on now at |
| 17:02 | mstenta[m] | i won't make it :-( |
| 17:02 | mstenta[m] | got a sick kiddo here... |
| 17:02 | symbioquine[m] | Bummer |
| 17:02 | symbioquine[m] | Hope they feel better soon! |
| 17:03 | mstenta[m] | haven't slept - manically doing little drupal/farmOS things in between pukes 😅😂😭 |
| 17:03 | donblair[m] | Sorry to hear that Mike! And would love to make call too -- but gonna be driving my mom to a doctor's appt ... |
| 17:03 | mstenta[m] | excited to see this stuff moving!!! |
| 17:03 | donblair[m] | mstenta[m]: Oh goodness |
| 17:04 | mstenta[m] | sorry tmi |
| 17:08 | donblair[m] | Sorry again, Mike! |
| 17:08 | donblair[m] | (And paul121 -- amazing work, too!!) |
| 17:09 | donblair[m] | Y'all move so fast doing awesome things it's inspiring |
| 17:09 | mstenta[m] | we're just packaging up what YOU did donblair !! 🙌 |
| 17:10 | mstenta[m] | super exciting! |
| 17:10 | donblair[m] | 'just packaging up' --> i.e. 'actually making it work without chewing gum and popsicle sticks' :) |
| 17:11 | donblair[m] | btw one last popsicle (sp?) stick -- I think y'all have this figured out already? but just in case -- there seems to be some weirdness in j-lite when reading local / remote files, so there's some contributor who came up with a nice workaround -- i've got some example code here: github.com/edgecollective/jupyterlite/bl |
| 17:12 | donblair[m] | you may have already surpassed that workaround with a better approach, just wanted to ping, in case -- |
| 17:12 | symbioquine[m] | donblair: Are you available to hop on the dev call? |
| 17:13 | donblair[m] | i think i can chat for a few minutes! will hop on now hold on |
| 19:13 | EvanKelley[m] | Hi again guys I'm sorry to hear that Mike isn't feeling well I hope he gets better soon. I came back again with another hopefully easy FarmOS question. We are currently working through our custom assets form and were wondering if there was a data type for a Date that didn't have the "hour:minutes:seconds" field so that our user only had to enter the month day and year they started the project? any suggestions would be greatly |
| 19:13 | EvanKelley[m] | appreciated. |
| 19:17 | mstenta[m] | Hi Evan Kelley :-) |
| 19:17 | mstenta[m] | It's my 3-yo daughter who's sick, not me |
| 19:17 | mstenta[m] | Good question! I've actually wanted the same thing myself for a while... basically to make the time optional |
| 19:18 | EvanKelley[m] | Oh well either way hope whoever's sick gets better |
| 19:18 | mstenta[m] | This is discussed a bit in this forum topic: farmos.discourse.group/t/reduce-date-tim |
| 19:19 | mstenta[m] | Ultimately the Log timestamp fields (I assume you're talking about logs?) are stored as a unix timestamp in the database... so time is always stored. Mostly what we have been discussing is making the data entry widget easier to use. |
| 19:19 | mstenta[m] | eg: Don't show the time fields by default, default them to "midnight" (as a convention to indicate "no time"), and add an optional little link to the field that says "Add time" or something |
| 19:20 | mstenta[m] | per that forum topic, my comment: |
| 19:20 | mstenta[m] | > My thought was: have a bit of JavaScript that automatically hides the “time” fields, and sets them all to zero, with a little link like “Specify time” which shows them and lets you set a specific time if you want to. |
| 19:21 | mstenta[m] | if you end up needing something similar, we'd welcome that contribution!! |
| 19:22 | mstenta[m] | this could be implemented in one of your custom modules at first, and if it seems like a nice general solution, we could consider pulling it "upstream" into the farmOS core codebase |
| 19:25 | EvanKelley[m] | Alrighty gotcha, we just didn't want to reinvent the wheel if it already existed. |
| 19:25 | mstenta[m] | nope go for it! it's a highly desired improvement! :-) |
| 21:59 | mstenta[m] | paul121: meant to ask... you said you got farmOS.py working in jupyterlite... did you have to "compile it in" to a custom jupyterlite build? or did it work to use `piplite install` or something? |
| 22:07 | paul121[m] | nope, no compile! |
| 22:07 | paul121[m] | import micropip |
| 22:07 | paul121[m] | micropip.install(['farmos==1.0.0b3']) |
| 22:07 | paul121[m] | even though it depends on `requests` and what not it will import without errors |
| 22:09 | paul121[m] | but in order to use farmOS.py practically, I had to swap in a custom session that makes requests using the js api, like `from js import fetch` |
| 22:09 | paul121[m] | gist.github.com/paul121/cd64a1e8ef2d609c |
| 22:23 | mstenta[m] | wow! |
| 22:23 | mstenta[m] | ok |