microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Proposal: Add Python support to WinUI 3

Open freakboy3742 opened this issue 5 years ago • 95 comments
trafficstars

Proposal: Add Python support to WinUI3

Summary

WinUI 3 should include an official Python API, allowing end-users to build native Windows GUI apps in Python.

Rationale

  • Python is one of the most popular programming languages in the world - by some measures, more popular than JavaScript, C# and C++.
  • "Developing a native GUI app" is one of the most fundamental use cases for any programming language. However, there are no Microsoft supported paths at present for build Windows GUIs using Python. Pythonnet is a third-party tool that can be used, but it doesn't produce UWP-compatible apps.
  • Python is widely used in education as an introductory language for new developers. Giving students the ability to build GUIs is an essential part of a modern developer experience.
  • Python is widely used in scientific circles to support research. These researchers currently use Jupyter to provide visualisations of their data analysis; however, there Jupyter cannot be used to develop standalone applications for visualization or data gathering. A native GUI API would enable scientists to develop these apps.
  • Microsoft already has an established interest in Python as a language. Microsoft has a dedicated Python language team (employing multiple members of the Python core team); VSCode has established Python language support; and Microsoft sponsors multiple major Python conferences.

Scope

Important Notes

This has been proposed in direct response to this tweet from @WindowsDocs, and this follow up from @zooba. It may be related to #1421.

Open Questions

freakboy3742 avatar Oct 02 '20 23:10 freakboy3742

Probably should also link to the experimental Python/WinRT projection which could see the necessary work required for WinUI support (as in: Xaml support).

Felix-Dev avatar Oct 02 '20 23:10 Felix-Dev

This could be really awesome for data apps. Please think about how to integrate the wide range of popular Dataviz tools like Matplotlib, plotly, bokeh, holoviews, datashader, altair etz.

And look to the popular web frameworks bokeh, Dash, panel, Streamlit and voila for inspiration on how domain experts, scientists and data scientist develop data apps.

For example check out my sites awesome-panel.org and awesome-panel.org.

MarcSkovMadsen avatar Oct 03 '20 17:10 MarcSkovMadsen

Make sure we can get an OpenGL context, so libraries like Arcade can do high-performance graphics.

pvcraven avatar Oct 04 '20 23:10 pvcraven

We need Python support

laike9m avatar Oct 05 '20 00:10 laike9m

Here to show support for this.

RushNMob avatar Oct 05 '20 00:10 RushNMob

Please add Python support to WinUI 3!

miguelp1986 avatar Oct 05 '20 01:10 miguelp1986

In my opinion, If Microsoft wants to substantially increase the number of apps that support windows, then one of the best approaches is to invest in the Python community. They are huge in number, enthusiasm, ambition, and growth. A large portion of them are young, and young developers are the future! Your app store will be full of python based apps :)

As a Python developer, if Windows supports Python, then that will make it my first choice as a development OS.

Best,

AzizAlqasem avatar Oct 05 '20 02:10 AzizAlqasem

Strongly in favor 🤚

leadersheir avatar Oct 05 '20 04:10 leadersheir

Absolutely Support this.

kilrogg avatar Oct 05 '20 04:10 kilrogg

I support this idea!

roodie avatar Oct 05 '20 05:10 roodie

Yes please.

BertRaeymaekers avatar Oct 05 '20 05:10 BertRaeymaekers

Yes i'd very much appreciate.

holg avatar Oct 05 '20 07:10 holg

Totally support this!

70Shubham07 avatar Oct 05 '20 08:10 70Shubham07

Support from Mauritius

Abdur-rahmaanJ avatar Oct 05 '20 09:10 Abdur-rahmaanJ

I also support this suggestion!

Twilight0 avatar Oct 05 '20 10:10 Twilight0

Hey iirc there is a python library for this. It's called pythonnet, a python library for the .NET framework.

SFM61319 avatar Oct 05 '20 12:10 SFM61319

Please add Python support to WinUI 3

hasii2011 avatar Oct 05 '20 13:10 hasii2011

I support adding Python support to the WinUI3 library.

andycrofford avatar Oct 05 '20 13:10 andycrofford

I support this. Good idea @freakboy3742

jjpepper avatar Oct 05 '20 15:10 jjpepper

I support this!!!

tfillmor924 avatar Oct 05 '20 16:10 tfillmor924

I'm interested in Python Support for WinUI3.

With recent additions like WSL and native containers Windows has started talking my language. I'd honestly strongly consider Windows as a daily driver if Python was picked up officially.

mkturner avatar Oct 05 '20 16:10 mkturner

This would be amazing addition to the platform and I'm 100% for it.

rlitchfield-Edcara avatar Oct 05 '20 17:10 rlitchfield-Edcara

This would be wonderful!

cerickson avatar Oct 05 '20 17:10 cerickson

Yes please !

fristhon avatar Oct 05 '20 20:10 fristhon

This is gonna be awesome!

rednafi avatar Oct 05 '20 20:10 rednafi

@benJkuhn and @kennykerr FYI! :)

StephenLPeters avatar Oct 05 '20 23:10 StephenLPeters

We shall not lose this opportunity! This can change the world for the better!

iCarlosCode avatar Oct 06 '20 00:10 iCarlosCode

This is needed! Windows is falling behind in the apps race because it doesn't have a straightforward solution for beginners to try their hand at making native apps.

alexjdw avatar Oct 06 '20 03:10 alexjdw

I am very excited to see Windows (WinUI3) supports Python, and I hope Microsoft approve that as soon as possible!

AzizAlqasem avatar Oct 06 '20 04:10 AzizAlqasem

Have developed GUIs with Python on Windows platform for few years. Had to use win32 and some other libraries to use specific functionalities. This support would have helped a lot.

aeroaks avatar Oct 06 '20 09:10 aeroaks