Anaconda Introduces PyScript, the ‘Minecraft for Software Development’

Anaconda Introduces PyScript, the ‘Minecraft for Software Development’

During his keynote address at PyCon 2022, Anaconda CEO Peter Wang introduced a new project: pyscript.

PyScript is described as a framework that uses a mix of Python and standard HTML to allow users to build Python applications in a browser.

“PyScript aims to give users a world-class programming language that has consistent style rules, is more expressive, and is easier to learn,” one of its creators, lead software architect Fabio Pliger, told a company. blog post.

In a more detailed technique blog postPliger says, “One of the ways I like to think of PyScript is [as] ‘Minecraft for Software Development’: A framework that provides basic building blocks for users to create their own worlds (applications) or new building blocks (PyScript components and widgets) that others can use.

Key elements of PyScript include how it allows users to access Python in the browser via direct content enablement, its external file hosting courtesy of the pioduro project and your application hosting without relying on server-side configuration. Users can also access other programs within the Python library ecosystem, including numpy, pandasY scikit-learn. PyScript also includes two-way communication between Python and Javascript objects and namespaces. Users can manage their software environment by defining which packages and files are included to run the page code. Visual application developers can use select user interface components, including buttons, containers, and text boxes. Additionally, the flexible PyScript framework allows you to create and share pluggable and extensible components directly in Python.

This flexibility reflects the goal of the program’s developers to provide a reliable and accessible framework for building and shipping applications for any hardware and software platform, “while having fun.” Instead of starting a new technology stack from scratch, the PyScript authors wanted to extract options from the rich Python ecosystem. They wanted to offer a clean API that supported standard HTML that could also extend HTML to read custom components while providing an extensible and pluggable component system, all on an adaptable platform.

“With a little flexibility, we thought the browser would be a great platform that we could adapt to achieve our goals of providing a reliable, accessible, and fun experience for PyScript users,” Pliger said. “The browser works everywhere (from laptops, tablets, and phones) and is secure, powerful, and stable, making it, in our opinion, the perfect starting point for realizing the goals of PyScript.”

Source: Anaconda

Pliger cites advances in WebAssembly/WASM, Emscripten, and Pyodide (a browser-based Python distribution, based on WebAssembly) as reasons why browsers have promising virtual machine capabilities, but there are issues involved, such as lack of compatibility between Python and modern user interface languages ​​like HTML, CSS, and JavaScript, which can be difficult to learn. PyScript enables Python to take advantage of these languages ​​to address common challenges throughout the web application development lifecycle, from authoring to packaging, distribution, and deployment.

“The point is that by registering new web components that are simple and highly expressive, users don’t need to spend time learning CSS and other web development-specific technologies,” Pliger said.

PyScript authors see the current alpha stage version, which they call unstable and limited but functional, as just the beginning. They envision a future in which it becomes an entirely new paradigm for programming and application development as PyScript and the core technologies used to build it continue to mature and improve.

For more detailed information on how PyScript works, visit the Pliger technical site. blog post. To view the GitHub archives and learn how to contribute to the project, visit this link.

Related Posts:

Anaconda Business Fee Is Paying Off, Says CEO

Data science and AI predictions for 2022

Anaconda’s 2021 State of Data Science Report Highlights Support for Open Source and Impacts of COVID-19

Leave a Comment