asweigart / asweigart/simple-turtle-tutorial-for-python
no display name and no $DISPLAY environment variable in Jupyter Notebook
- Dominant language
- Python
- Stars
- 153
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
I want to teach Python for kids. I want them to use Jupyter Notebook. To avoid the hassle of installation, I want them to use a free online Jupyter Notebook. I thought google's colab ([link](https://colab.research.google.com/notebooks) and jupyter.org ([link](https://jupyter.org/try) could be best solutions. However, I tried them both and got the error message below:
```
from turtle import *
colors = ['red', 'purple', 'blue', 'green', 'yellow', 'orange']
for x in range(360):
pencolor(colors[x % 6])
width(x / 100 + 1)
forward(x)
left(59)
```
TclError: no display name and no $DISPLAY environment variable
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no repository file or test; start by reproducing the turtle example in Google Colab and the Jupyter try environment linked in the report. Determine whether the tutorial needs environment-specific guidance, and consider the issue done when the supported online setup and expected behavior are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100