Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to manage the schedule of production tasks with R language and Python

Shulou Source: shulou.com Published: 2022-06-02 03:11:02 09月11日 Update

How to use R language and Python production task schedule management, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Always feel that when running the code, if there is a progress bar that prompts the progress of the task, very often our program is generally running for a long time, if the program runs without any hint, it is simply a nightmare, simply do not know whether the program is lazy or really stuck, and if you write the print function in the code, more cycles, your screen will be printed prompt text instantly brushed screen.

Later, after searching, I really found a solution. Today, I would like to introduce two packages, which can do task processing, process processing, and write some simple interactive interfaces.

Here is only a simple usage, only to meet our daily task progress tips.

Library ("tcltk")

Library ("tcltk2")

Mainly master the following two main functions:

Set the format of the progress bar tkProgressBar (title = "R progress bar", # task progress name label = "", # task progress label min = 0, # initial progress max = 1, # end progress initial = 0 # start position width = 300 # progress bar width) Open progress bar setTkProgressBar (pb, # available progress bar value, # progress value title = NULL, # title label = NULL # tag) library ("rvest")

Library ("downloader") url% html_nodes ("img") > html_attr ("data-original") > na.omit link% sample (size=10) Name

Tags: Progress tasks programs runs code hints management two functions help language production time more tags interfaces processing clear simple beautiful Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker Shulou Information Xiaomi Apple