Doing some simple Python work on azure

dino.c 2021-01-21 10:11:34
doing simple python work azure

1. The company has banned python

My main business is desktop development , Occasionally you need to do data and algorithms . Recently in use python Deal with some work , It's in full swing , All of a sudden python It can't be used , After checking the records, it turns out that IT The administrator forbids me to use python.

I don't know why IT The administrator will keep an eye on python, In a word, first submit to understand the requirements of the envelope . Waiting for IT I don't want to interrupt my work while I'm unsealed , I have to find a way to run it myself python. I know there are a lot of online runs python Environment , And Microsoft itself has Codespaces and Remote Development Extension Pack Things like that , But this time I'm going to try Azure Of Machine learning studio Run in python, By the way Azure Introduction article .

2. Azure subscribe

Azure The organizational structure of resources in , It has four levels : Management Group 、 subscribe 、 Resource groups and resources .

  • resources : Resources are instances of services you create , Such as virtual machine 、 To store or SQL database .
  • Resource group : Resources are merged into resource groups , Resource groups act as deployment and management Azure resources ( Such as Web application 、 Databases and storage accounts ) The logical container of .
  • subscribe : Subscriptions combine user accounts with the resources created by those user accounts . For each subscription , There are limits or quotas on the amount of resources you can create and use . Organizations can use subscriptions to manage costs , Or by the user 、 Resources created by a team or project .
  • Management Group : These groups help you manage access to multiple subscriptions 、 Strategy and compliance . All subscriptions in the management group automatically inherit the conditions that apply to the management group .

Use Azure The premise is to have a Azure subscribe , If it's just trial and learning, there are several ways . Sign in Auzre Gateway after , Can find 200 Free trial in US dollars and Student rights The page of :

You can also find any one A tutorial for , Open one Azure Sandbox . For example, you can This article Try to open a sandbox in the tutorial .Microsoft Learn Sandbox ( Sometimes called “Azure Sandbox ”) Can be used to pass Microsoft Learn Content exploration Azure Free environment for . A sandbox can only survive 4 Hours , You can create multiple sandboxes every day .

2. Resource group

If you haven't created a resource group yet , Click on Resource group Go to the resource group page , And then click establish Button to start creating resource groups .

Select the subscription for the resource group you want to create , Enter the name of the resource group , Select area , And then you can click “ see + establish ” Button to create a resource group .

3. Machine learning resources

Now? , The subscription and resource group have been created , The next step is to create specific resources . Get into All services -> Mechanical learning page , Create a new machine learning workspace .

Choose your subscription on this page 、 Resource group 、 region , Just type in a name , And then click “ Review + establish " Button to complete the creation of machine learning workspace .

Wait a moment , Page prompt resources “ Deployment completed ”, Click on ” Go to resources “ Enter the newly created machine learning resource .

4. Machine learning studio

On the machine learning page , Click on ” Start the workspace “, Go to the machine learning studio page .

stay Azure The job of machine learning is , I can use Notebooks function python, That's my goal . There are other machine learning functions , That's not what I care about right now , Try again if you have a chance . But now it's time to run python It's one step away , I need another one Calculation example Used to run the python Code . Select... From the menu on the left “ Calculation “, And then in ” Calculation example “ Page hits ” establish “:

Choose a virtual machine type that you can afford , Enter the name and click ” establish “ You can complete the creation of a calculation instance .Azure Most of the commonly used tools have been pre installed in the preset machine learning computing examples , Basically out of the box .

Last , Select... From the menu on the left ”Notebooks“, Upload all kinds of documents and codes , open python Code runs , My goal has been achieved .

5. charge

Last, last , Because I just want to run it temporarily python, Remember to close the calculation instance after using it . Even if the calculation instance is closed Azure There will still be some fees , Because all kinds of resources created can be regarded as renting hard disk space .

stay Cost management + charging You can view your own Azure Amount and cost and forecast , It's just running python It doesn't cost much :

6. Conclusion

stay Azure In the course of using , All the exports on the page are links to tips and learning resources , for example Azure Machine learning documents . If you're not like me, just use it python, These resources should help you . You can also be in Learn Microsoft Docs I found some good courses in , Like this one : Create machine learning models .

Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .


  1. Python批量 png转ico
  2. 使用line_profiler对python代码性能进行评估优化
  3. 使用line_profiler对python代码性能进行评估优化
  4. Getting started with Python 3 flash in win environment
  5. Common ways to write configuration files in Python
  6. Python会在2021年死去吗? Python 3.9最终版本的回顾
  7. Python batch PNG to ICO
  8. Using line_ Profiler evaluates and optimizes the performance of Python code
  9. Using line_ Profiler evaluates and optimizes the performance of Python code
  10. Will Python die in 2021? A review of the final version of Python 3.9
  11. Python3 SMTP send mail
  12. Understanding closures in Python: getting started with closures
  13. Python日志实践
  14. Python logging practice
  15. [python opencv 计算机视觉零基础到实战] 十、图片效果毛玻璃
  16. [python opencv 计算机视觉零基础到实战] 九、模糊
  17. 10. Picture effect ground glass
  18. [Python opencv computer vision zero basis to actual combat] 9. Fuzzy
  19. 使用line_profiler對python程式碼效能進行評估優化
  20. Using line_ Profiler to evaluate and optimize the performance of Python code
  21. LeetCode | 0508. 出现次数最多的子树元素和【Python】
  22. Leetcode | 0508
  23. LeetCode | 0530. 二叉搜索树的最小绝对差【Python】
  24. LeetCode | 0515. 在每个树行中找最大值【Python】
  25. Leetcode | 0530. Minimum absolute difference of binary search tree [Python]
  26. Leetcode | 0515. Find the maximum value in each tree row [Python]
  27. 我来记笔记啦-搭建python虚拟环境
  28. Let me take notes - building a python virtual environment
  29. LeetCode | 0513. 找树左下角的值【Python】
  30. Leetcode | 0513. Find the value in the lower left corner of the tree [Python]
  31. Python OpenCV 泛洪填充,取经之旅第 21 天
  32. Python opencv flood fill, day 21
  33. Python爬虫自学系列(二)
  34. Python crawler self study series (2)
  35. 【python】身份证号码有效性检验
  36. [Python] validity test of ID number
  37. Python ORM - pymysql&sqlalchemy
  38. Python ORM - pymysql&sqlalchemy
  39. centos7 安装python3.8
  40. centos7 安装python3.8
  41. Centos7 installing Python 3.8
  42. Centos7 installing Python 3.8
  43. Django——图书管理系统(六)
  44. Django——图书管理系统(五)
  45. Django -- library management system (6)
  46. Django -- library management system (5)
  47. python批量插入数据小脚本
  48. Python batch insert data script
  49. ZoomEye-python 使用指南
  50. Zoomeye Python User's Guide
  51. 用Python写代码,一分钟搞定一天工作量,同事直呼:好家伙 - 知乎
  52. Using Python to write code, one minute to complete a day's workload, colleagues call: good guy - Zhihu
  53. Python 上的可视化库——PyG2Plot
  54. Pyg2plot: a visualization library on Python
  55. Python 上的可视化库——PyG2Plot
  56. Python实用代码-无限级分类树状结构生成算法
  57. Pyg2plot: a visualization library on Python
  58. Python utility code - infinite classification tree structure generation algorithm
  59. 奇技淫巧,还是正统功夫?Python推导式最全用法
  60. Pandas 的这个知识点,估计 80% 的人都得挂!