{"id":84481,"date":"2023-07-11T13:14:36","date_gmt":"2023-07-11T12:14:36","guid":{"rendered":"https:\/\/www.raspberrypi.org\/?p=84481"},"modified":"2023-07-25T15:51:20","modified_gmt":"2023-07-25T14:51:20","slug":"code-editor-open-source","status":"publish","type":"post","link":"https:\/\/www.raspberrypi.org\/blog\/code-editor-open-source\/","title":{"rendered":"Our Code Editor is open source"},"content":{"rendered":"\n
A couple of months ago we announced<\/a> that you can test the online text-based Code Editor we’re building to help young people aged 7 and older learn to write code. Now we’ve made the code for the Editor open source so people can repurpose and contribute to it.<\/p>\n\n\n You and your learners can try out the Code Editor in our Python project paths<\/a>. We\u2019ve included a feedback form<\/a> for you to let us know what you think about the Editor.<\/p>\n\n\n\n Since the Editor lets learners save their code using their Raspberry Pi Foundation account, it’s easy for them to build on projects they’ve started in the classroom or at home, or bring a project they\u2019ve started at home to their coding club.<\/p>\n\n\n Python is the first programming language our Code Editor supports<\/a> because it’s popular in schools, CoderDojos, and Code Clubs, as well as in industry. We’ll soon be adding support for web development languages (HTML\/CSS).<\/p>\n\n\n We know that starting out with new programming tools can be tricky and add to the cognitive load of learning new subject matter itself. That’s why our Editor has a simple and accessible user interface and design:<\/p>\n\n\n\n We’ll expand the Editor’s functionalities as we go. For example, at the moment we\u2019re looking at how to improve the Editor’s user interface (UI) for better mobile support.<\/p>\n\n\n\n If there’s a feature you think would help the Editor become more accessible and more suitable for young learners, or make it better for your classroom or club, please let us know via the feedback form<\/a>.<\/p>\n\n\n\n Our vision is that every young person develops the knowledge, skills, and confidence to use digital technologies effectively, and to be able to critically evaluate these technologies and confidently engage with technological change. We’re part of a global community that shares that vision, so we’ve made the Editor available as an open-source project. That means other projects and organisations focussed on helping people learn about coding and digital technologies can benefit from the work.<\/p>\n\n\n\n To support the widest possible range of learners, we’ve designed the Code Editor application to work well on constrained devices and low-bandwidth connections. Safeguarding, accessibility, and data privacy are also key considerations when we build digital products at the Foundation. That’s why we decided to design the front end of the Editor to work in a standalone capacity, with Python executed through Skulpt, an entirely in-browser implementation of Python, and code changes persisted in local storage by default. Learners have the option of using a Raspberry Pi Foundation account to save their work, with changes then persisted via calls to a back end application programming interface (API).<\/p>\n\n\n\n As safeguarding is always at the core of what we do, we only make features available that comply with our safeguarding policies as well as the ICO’s age-appropriate design code<\/a>. We considered supporting functionality such as image uploads and code sharing, but at the time of writing have decided to not add these features given that, without proper moderation, they present risks to safeguarding.<\/p>\n\n\n\n There\u2019s an amazing community developing a wealth of open-source libraries. We chose to build our text-editor interface using CodeMirror, which has out-of-the-box mobile and tablet support and includes various useful features such as syntax highlighting and keyboard shortcuts. This has enabled us to focus on building the best experience for learners, rather than reinventing the wheel.<\/p>\n\n\n\n Diving a bit more into the technical details:<\/p>\n\n\n\n You can find out more about our Editor’s code for both the UI front end and API back end in our GitHub readme and contributions documentation. These kick-starter docs will help you get up and running faster:<\/p>\n\n\n\n The Editor’s front end<\/a> is licensed as permissively as possible under the Apache Licence 2.0<\/a>, and we\u2019ve chosen to license the back end<\/a> under the copyleft AGPL V3<\/a> licence. Copyleft licences mean derived works must be licensed under the same terms, including making any derived projects also available to the community.<\/p>\n\n\n\n We\u2019d greatly appreciate your support with developing the Editor further, which you can give by:<\/p>\n\n\n\n Our work to develop and publish the Code Editor as an open-source project has been funded by Endless. We thank them for their generous support.<\/p>\n\n\n\n If you are interested in partnering with us to fund this key work, or you are part of an organisation that would like to make use of the Code Editor, please reach out to us via email<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" A couple of months ago we announced that you can test the online text-based Code Editor we’re building to help young people aged 7 and older learn to write code. Now we’ve made the code for the Editor open source so people can repurpose and contribute to it. How can you use the Code Editor?…<\/p>\n","protected":false},"author":32734,"featured_media":83583,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4009],"tags":[1204,3931,3999],"home_page_category":[3842],"home_page_card_color":[],"class_list":["post-84481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-editor","tag-open-source","tag-digital-making-framework","tag-code-editor"],"acf":[],"featured_image_src":"https:\/\/www.raspberrypi.org\/app\/uploads\/2023\/04\/Screenshot-2023-04-04-at-14.58.04.png","author_info":{"display_name":"Phil Howell","author_link":"https:\/\/www.raspberrypi.org\/blog\/author\/ph\/"},"yoast_head":"\n
<\/figure>\n<\/div>\n\n\nHow can you use the Code Editor?<\/h2>\n\n\n\n
\n
<\/figure>\n<\/div>\n\n\n
<\/figure>\n<\/div>\n\n\nPutting ease of use and accessibility front and centre<\/h2>\n\n\n\n
\n
The open-source code for the Code Editor<\/h2>\n\n\n\n
How did we build the Editor? An overview<\/h3>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n<\/figure>\n\n\n\n\n
Accessing the open-source code<\/h3>\n\n\n\n
\n
\n
\n