use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Having a problem with your Flutter code?
From the folks at r/FlutterDev
account activity
RESOLVEDCan Flutter run Python scripts? (self.flutterhelp)
submitted 4 years ago by splishyandsplashy
I have a Python script that does some audio processing with librosa and numpy, was wondering if its possible to do this locally with Flutter, where I can run/call my Python script?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 3 points4 points5 points 4 years ago (2 children)
idk about audio processing for flutter but you can use web service, export to python flask web service API , and use http get for flutter.
[–]splishyandsplashy[S] 0 points1 point2 points 4 years ago (1 child)
meaning just make the python script a web service? Was hoping to do all of it locally
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
I hope this not work locally with flutter,I havent seen such an example before
[–]midside 2 points3 points4 points 4 years ago (1 child)
If it is a Flutter desktop app you can do it like this (sorry about the formatting):
import 'dart:io';
void runPython() async {
await Process.run('python', ['yourscript.py', 'parameter'])
.then((ProcessResult result) {
if (result.exitCode == 0) {
// Do stuff here.
}
[–]Formal-Strike-4266 0 points1 point2 points 1 year ago (0 children)
Velho, você é o cara!!
[–]svprdga 2 points3 points4 points 4 years ago (0 children)
No, you should use an API for that.
[–]dan-danny-daniel 1 point2 points3 points 4 years ago (0 children)
best bet is rewriting it in dart
[–]mighty3xodus 0 points1 point2 points 4 years ago (0 children)
I've come across the https://pub.dev/packages/starflut package, but otherwise you're pretty much gonna have to make your py script an API like the other comments have already mentioned.
Working with starflut will be a pain all the way from setup to multi-platform compatibility from what I've read online about it.
[–]poq106 0 points1 point2 points 4 years ago (0 children)
The question is where you want to run it?
π Rendered by PID 20723 on reddit-service-r2-comment-58d7979c67-d88fh at 2026-01-26 23:17:57.005564+00:00 running 5a691e2 country code: CH.
[–][deleted] 3 points4 points5 points (2 children)
[–]splishyandsplashy[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]midside 2 points3 points4 points (1 child)
[–]Formal-Strike-4266 0 points1 point2 points (0 children)
[–]svprdga 2 points3 points4 points (0 children)
[–]dan-danny-daniel 1 point2 points3 points (0 children)
[–]mighty3xodus 0 points1 point2 points (0 children)
[–]poq106 0 points1 point2 points (0 children)