Python

OpenAI to Release Its Python SDK (analyticsindiamag.com) 5

"OpenAI has unveiled the Beta version of its Python SDK," reports Analytics India Magazine, "marking a significant step towards enhancing access to the OpenAI API for Python developers." The OpenAI Python library offers a simplified way for Python-based applications to interact with the OpenAI API, while providing an opportunity for early testing and feedback before the official launch of version 1.0. It streamlines the integration process by providing pre-defined classes for API resources, dynamically initialising from API responses, ensuring compatibility across various OpenAI API versions...

Developers can find comprehensive documentation and code examples in the OpenAI Cookbook for various tasks, including classification, clustering, code search, customising embeddings, question answering, recommendations, visualisation of embeddings, and more...

This comes just weeks before OpenAI's first developer conference, OpenAI DevDay.

More details in OpenAI's official announcement at PyPi.org.
Programming

States Are Calling For More K-12 CS Classes. Now They Need the Teachers. (edweek.org) 114

Long-time Slashdot reader theodp writes: "42 states to go!" exclaimed Code.org to its 1+ million Twitter followers as it celebrated victorious efforts to pass legislation making North Carolina the 8th state to pass a high school computer science graduation requirement, bringing the tech-backed nonprofit a step closer to its goal of making CS a requirement for a HS diploma in all 50 states. But as states make good on pledges made to tech CEOs to make their schoolchildren CS savvy, Education Week cautions that K-12 CS has a big certified teacher shortage problem.
From the article: When trying to ensure all students get access to the knowledge they need for college and careers, sometimes policy can get ahead of teacher capacity. Computer science is a case in point. As of 2022, every state in the nation has passed at least one law or policy intended to promote K-12 computer science education, and 53 percent of high schools offered basic computer science courses that year, according to the nonprofit advocacy group Code.org."

"'There's big money behind making [course offerings] go up higher and faster,' thanks to federal and state grants as well as private foundations, said Paul Bruno, an assistant professor of education policy, organization, and leadership at the University of Illinois Urbana-Champaign. "But then that raises the question, well, who are we getting to teach these courses...?"

Bruno's work in states such as California and North Carolina suggests that few of those new computer science classes are staffed with teachers who are certified in that subject."

Python

7% of Python Developers Are Still Using Python 2, Annual Survey Finds (infoworld.com) 53

"Python 3 was by far the choice over Python 2 in a late-2022 survey of more than 23,000 Python developers," reports InfoWorld, "but the percentage of respondents using Python 2 actually ticked up compared to the previous year." Results of the sixth annual Python Developers Survey, conducted by the Python Software Foundation and software tools maker JetBrains, were released September 27. The Python Developers Survey 2022 report indicates that 93% of respondents had adopted Python 3, while only 7% were still using Python 2. In the 2021 survey, though, 95% used Python 3 while 5% used Python 2. In 2020, Python 3 held a 94% to 6% edge. Dating back to 2017, 75% used Python 3 and 25% used Python 2...

The 2022 report said 29% of respondents still use Python 2 for data analysis, 24% use Python 2 for computer graphics, and 23% used Python 2 for devops. The survey also found that 45% of respondents are still using Python 3.10, which arrived two years ago, while just 2% still use Python 3.5 or lower. (Python 3.11 was released October 24, 2022, right when the survey was being conducted.)

Other findings from the survey:
  • 21% said they used Python for work only, while 51% said they used it for work and personal/educational use or side projects, and 21% said they used Python only for personal projects.
  • 85% of respondents said Python was their main language (rather than a secondary language).
  • The survey also gives the the top "secondary languages" for the surveyed Python developers as JavaScript (37%), HTML/CSS (37%), SQL (35%), Bash/Shell (32%), and then C/C++ (27%).
  • When asked what they used Python for most, 22% said "Web Development", 18% said "Data Analysis," 12% said "Machine Learning," and 10% said "DevOps/System Administration/Writing Automation Scripts."

Slashdot Top Deals