Python is the fastest-growing language in popularity and is increasingly used in education for a variety of fields such as data science, mathematics, physics, and statistics. Jupyter Notebooks, interactive documents that comprise code, rich-text, and visualizations, are widely used and loved by data scientists and machine learning practitioners.
Today we are excited to announce the native integration of both Python and Jupyter files into the Teams Education edition. Educators will now be able to assign, view, edit, and run Python files (.py) and Python Notebooks (.ipynb) directly in Assignments in Teams for Education.
As an educator, you can now upload notebooks and Python scripts as reference material or distribute them to students, which can then be submitted for grading. The new support means that these file types can now be rendered and viewed directly in Teams. The process has also been streamlined so that there is no setup required to edit and run code. It’s as simple as opening the notebook file and clicking “Start Jupyter kernel” in the ribbon that appears.
The entire process from distributing the assignment, completing it, turning it in, and grading it can be facilitated from Teams without ever needing to set up a separate coding environment.
In addition to the fundamental code running capabilities in Teams, a variety of enhanced features were introduced to improve the coding process. These features include:
Leaves notes-to-self as you code. Or alternatively as an instructor, leave comments directly on code segments when grading and providing feedback.
Creating an assignment
To create an assignment using notebooks, follow the normal Create Flow here: Create an assignment in Microsoft Teams. Add an existing .py (python) file or .ipynb (Jupyter notebook) file from your OneDrive or local machine to the attachment section.
Changing the compute resource
By default, you will be connected to the in-browser compute called . Pyolite will allow you to run all your code in the browser without any additional setup. When using Pyolite for the first time, there will be a prompt to remind you that Pyolite loads python modules from a third-party site. Please see their documentation for additional information.
If you prefer using a non-browser compute (e.g., a local or remote Jupyter server), you can do so from the Runtime tab in the toolbar. Connecting to a local or remote will give you full control of your code execution environment (e.g. fine grain package management), but of course, introduces additional complexity. To do so, follow these instructions:
File safety
When you first open a notebook or a Python file using Teams, you will see a prompt about trust. Since some files could be harmful, please only open files in trusted mode when you know the content is safe. Otherwise, you can open the files in restricted mode, which still allows you to view and comment on the files. You can change your trust decision using the File tab of the toolbar.
Give the Jupyter notebook and python support in Teams a try and let us know what you think. If you have any questions or feedback, please let us know your thoughts in this feedback forum!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.