Using Python for data analysis on mobile phones -- creating your own remote jupyter notebook

osc_ 13sujivn 2021-01-23 12:57:15
using python data analysis mobile


Use python you , Have you ever wanted to show your code without a computer ? Or change a computer to use python Found that many packages are not easy to install ? Or want to do it on the subway coding But mobile phones can't compile . Then follow this article to configure your own remote jupyter notebook, Whenever and wherever possible Python.

Get ready

  • A computer

  • One is configured anaconda Server for ( No servers ? You can click to see how to buy and configure )

  • Basic programming knowledge

  • filezilla( No installation ? You can click to see how to use )

Let's get started

First ssh Connect to your own server , Enter the following command

jupyter notebook --generate-config

If you are prompted

Running as root it not recommended. Use --allow-root to bypass.

Then input.

jupyter notebook --generate-config --allow-config

After successful execution, the following information will be generated , In other words, a configuration file is generated in the displayed directory .

 picture

Next input ipython Get into ipython

In turn, run

from notebook.auth import passwd
passwd()

You will be prompted to enter your password twice , After input, a key will be generated , Be sure to copy and paste to other places for later use

Next input exit() sign out ipython, And on again filezilla Connect to your own server , Download the just generated py file . If you haven't touched the server , Then the file will be in the position shown in the figure

After downloading it locally, open it and find the following lines to modify ( Or pay attention to the official account : Get up early python, reply ipython Get directly modified file )

c.NotebookApp.password = 'sha1:1b4ea9662b35:3e3d6a823d264d466f125a0939623c05e7b66007'

c.NotebookApp.ip='0.0.0.0'

c.NotebookApp.open_browser = False

c.NotebookApp.port =8888





The last step , Enter alicloud in the following order ecs Reception , Find security group rules , add to 8888 port


Come here , All configuration is done .

start-up

Go back to the command line , Input jupyter notebook --allow-root Just like the picture below generation Table opened successfully

 picture

At this point in your mobile phone or computer input your ip:8888 Then enter the password you just set , If you successfully enter jupyter notebook It's done !

 picture

Last , Although it is now possible to enter , But once the command line just turned off or ssh Broken , You can't use it , So we go back to the command line and press (control+c) close jupyter notebook. Reenter the following command to change notebook Run in the background , At this time, no matter turn off the computer or turn it off ssh It won't make any difference , Open this website anytime, anywhere coding 了 !

nohup jupyter notebook --allow-root &


版权声明
本文为[osc_ 13sujivn]所创,转载请带上原文链接,感谢
https://pythonmana.com/2021/01/20210123125537393L.html

  1. Mandatory conversion of Python data type
  2. Django reported an error: 'key' ID 'not found in' xxx '. Choices are: xxx'
  3. Python 400 sets of large video, starting from the right direction to learn, a complete set to you
  4. 只需十四步:从零开始掌握Python机器学习(附资源)
  5. Just 14 steps: Master Python machine learning from scratch (resources attached)
  6. Python|文件读写
  7. 安利一个Python界神奇得网站
  8. Python | file reading and writing
  9. Amway is a marvelous website in Python world
  10. 第二热门语言:从入门到精通,Python数据科学简洁教程
  11. The second popular language: from introduction to mastery, python data science concise tutorial
  12. 以我的亲身经历,聊聊学python的流程,同时推荐学python的书
  13. With my own experience, I'd like to talk about the process of learning Python and recommend books for learning python
  14. 以我的亲身经历,聊聊学python的流程,同时推荐学python的书
  15. With my own experience, I'd like to talk about the process of learning Python and recommend books for learning python
  16. Django url 路由匹配过程
  17. Django URL routing matching process
  18. 强者一出,谁与争锋?与Python相比,C++的运行速度究竟有多快?
  19. Who will fight against the strong? How fast is C + + running compared with Python?
  20. python 学习体会
  21. Experience of learning Python
  22. python7、8章
  23. Chapter 7 and 8 of Python
  24. python bool和str转换
  25. python——循环(for循环、while循环)及练习
  26. python变量和常量命名、注释规范
  27. python自定义异常捕获异常处理异常
  28. python 类型转换与数值操作
  29. python 元组(tuple)和列表(list)区别
  30. 解决python tkinter 与 sleep 延迟问题
  31. python字符串截取操作
  32. Python bool and STR conversion
  33. Python -- loop (for loop, while loop) and Practice
  34. Specification for naming and annotating variables and constants in Python
  35. Python custom exception capture exception handling exception
  36. Python type conversion and numerical operation
  37. The difference between tuple and list in Python
  38. Solve the delay problem of Python Tkinter and sleep
  39. Python string interception operation
  40. Python 100天速成中文教程,GitHub标星7700
  41. Python 100 day quick Chinese course, GitHub standard star 7700
  42. 以我的親身經歷,聊聊學python的流程,同時推薦學python的書
  43. With my own experience, I'd like to talk about the process of learning Python and recommend books for learning python
  44. python爬虫获取起点中文网人气排行Top100(快速入门,新手必备!)
  45. Python crawler to get the starting point of Chinese network popularity ranking Top100 (quick start, novice necessary!)
  46. 【Python常用包】itertools
  47. Itertools
  48. (国内首发)最新python初学者上手练习
  49. (国内首发)最新python初学者上手练习
  50. (first in China) the latest practice for beginners of Python
  51. (first in China) the latest practice for beginners of Python
  52. (数据科学学习手札104)Python+Dash快速web应用开发——回调交互篇(上)
  53. (data science learning notes 104) Python + dash rapid web application development -- callback interaction (Part 1)
  54. (数据科学学习手札104)Python+Dash快速web应用开发——回调交互篇(上)
  55. (data science learning notes 104) Python + dash rapid web application development -- callback interaction (Part 1)
  56. (資料科學學習手札104)Python+Dash快速web應用開發——回撥互動篇(上)
  57. (materials science learning notes 104) Python + dash rapid web application development -- callback interaction (Part 1)
  58. Python OpenCV 图片高斯模糊
  59. Python OpenCV image Gaussian blur
  60. Stargan V2: converse image synthesis for multiple domains reading notes and Python code analysis