Other [PyBridge] B4J v10.2 BETA is available for download

Erel

B4X founder
Staff member
Licensed User
Longtime User
This update includes a new library named PyBridge, that allows using Python libraries from inside the B4J app. Python is leading the way in fields such as AI, LLM, image recognition and many others. Using PyBridge is not always trivial and it won't be the right tool for every task, however there are many things that weren't possible before and are now possible. And that is a good thing.

1739718245749.png


Other improvements:
  • Many internal libraries were updated since last release.
  • New internal keywords: Initialized and NotInitialized:
    B4X:
    If Map1 <> Null And Map1.IsInitialized Then ... 'boring
    If Initialized(Map1) Then ... 'less boring
  • #CustomBuildAction arguments are expanded with environment variables and other variables (%PROJECT%, %B4X%, %JAVABIN%, %PROJECT_NAME% and %ADDITIONAL%): https://www.b4x.com/android/forum/threads/b4x-comment-links.119897/#content
  • LogColors withs in b4xlibs
  • Fix for logs encoding issue in Java 19+. Note that the following attribute should be added for the same fix with standalone packages (if the terminal output is important):
    B4X:
    #PackagerProperty: VMArgs = -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8
  • B4XCollections: new helper methods: EmptyList, EmptyMap, MergeMaps, MergeLists, CreateList, CopyOnWriteMap and CopyOnWriteList.
  • Panel.LoadLayout no longer deletes the previous tag.
Download link: https://www.b4x.com/b4j/files/beta.exe

PyBridge is a big thing. I will write tutorials that explain how it works and how Python libraries can be wrapped to be accessed in a simple manner.
To run a simple program:

1739957471817.png



Please start a new thread for questions or issues. Use [pybridge] in the thread title if related.
 

Attachments

  • 1739719504057.png
    1739719504057.png
    15.4 KB · Views: 1,036
Last edited:

mcqueccu

Well-Known Member
Licensed User
Longtime User
Did you click the more info option. On mine, the run anyway is hidden behind that,
The left is the one with the More Info, the right image is the one after more info is clicked, It only shows the Details but no RUN ANYWAY.

But Erel has shown another way which is UNBLOCK.
Am using Windows 11, 24H2
 
Upvote 0
Top