Many bloggers on site B have taken videos of using iPad as a productivity tool, such as using iPad to draw comics, take notes, cut videos, do light office work, etc. Then iPad can Is it used to write code and run Python?
This is also a concern of some friends who are new to Python. They often download some Python editing APPs and try to practice Python on them, such as pythonista, Pyto, Python3IDE, etc.
"My idea is that the iPad is not suitable for writing code, let alone running Python, because it has many restrictions on the environment and is not convenient for editing."
Ruzhihu replied jokingly: The only function of iPad that is conducive to learning python is to shut down...
But if you insist on using it If so, you can consider a combination of iPad Jupyter and an external keyboard as a note-taking application.
Speaking of Jupyter, everyone may be familiar with it. This is a web-based Python data science platform on which you can write Python, R, markdown, etc., can run in real time and are suitable for data processing and analysis.
Jupyter has two product forms: Notebook and Lab. It can be installed locally or deployed to the server, so the iPad browser can run Jupyter and edit Python code.
So how to deploy Jupyter to the server?
In fact, it is not difficult. It takes about 5 steps:
1. Purchase a cloud server (Linux)
By default, the notebook server only runs the local 127.0.0.1:8888 and can only be accessed locally, that is, it can be accessed locally through the browser using http://127.0.0.1:8888. notebook.
#2. Install Anaconda or Miniconda on the cloud server system.
This step is to install conda, which is a Python package management tool. It is recommended to switch the Conda source to Tsinghua source for faster download speed.
3. Configure the Python development environment. If you have installed Anaconda or Miniconda, this step can be omitted
4. Install Jupyter Notebook or Jupyter Lab, and adjust the configuration.
Jupyter components are all installed using conda. For configuration, see the tutorial: https://jupyter-notebook.readthedocs.io/en/stable/public_server.html.
#5. Configure domain name access for Jupyter.
See the tutorial for configuration methods: https://jupyter-notebook.readthedocs.io/en/stable/public_server.html#using-a-gateway-server-for-kernel-management .
After completing these 5 steps, you can access Jupyter on the iPad browser through the domain name, and edit and run Python code on Notebook or Lab.
If you don’t want to configure your own server, you can also use ready-made Jupyter applications, such as mybinder. You can set up your own Jupyter environment by visiting the website.
# In short, I do not recommend using iPad to practice Python. The time cost is too high and the functions that can be realized are limited. You can program on the computer with peace of mind, we won’t bother with it.
The above is the detailed content of Is iPad suitable for writing Python?. For more information, please follow other related articles on the PHP Chinese website!