首页> 外文会议>Midwest instruction and computing symposium >Setting Up Python Development Environment for Use in a Small Classroom
【24h】

Setting Up Python Development Environment for Use in a Small Classroom

机译:设置Python开发环境以在小教室中使用

获取原文

摘要

In this paper we describe a way to set up a classroom environment using the common tools used in software development with the focus on Python. We cover version control system Git, testing framework pytest, source formatter black, and linter flake8. Proper use of these tools helps students preserve history of code changes, provides feedback before a student submits their assignment, and eliminates subjective style preferences from the code review process. The proposed setup works on Linux, macOS, and Windows without major modifications. We recommend publishing a standard requirements.txt for students to install the required packages and using Python's built-in module venv to isolate a class from the rest of the system. This approach helps eliminate (or at least greatly reduce) the common "works on my machine" problem by locking both Python version and installed packages.
机译:在本文中,我们描述了一种使用软件开发中常用的工具(以Python为重点)来建立教室环境的方法。我们介绍了版本控制系统Git,测试框架pytest,源格式化程序black和linter flake8。正确使用这些工具有助于学生保存代码更改的历史记录,在学生提交作业之前提供反馈,并消除代码审查过程中的主观风格偏好。建议的设置无需修改即可在Linux,macOS和Windows上运行。我们建议发布一个标准的require.txt文件,供学生安装所需的软件包,并使用Python的内置模块venv将类与系统的其余部分隔离。通过锁定Python版本和已安装的软件包,此方法有助于消除(或至少大大减少)常见的“在我的机器上工作”的问题。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号