File size: 2,767 Bytes
c254ac1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---

description: Explore the Ultralytics Utils package, with handy functions like colorstr, yaml_save, set_logging & more, designed to enhance your coding experience.
keywords: Ultralytics, Utils, utilitarian functions, colorstr, yaml_save, set_logging, is_kaggle, is_docker, clean_url
---


# Reference for `ultralytics/utils/__init__.py`

!!! Note

    This file is available at [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/__init__.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/__init__.py). If you spot a problem please help fix it by [contributing](https://docs.ultralytics.com/help/contributing/) a [Pull Request](https://github.com/ultralytics/ultralytics/edit/main/ultralytics/utils/__init__.py) 🛠️. Thank you 🙏!


<br><br>

## ::: ultralytics.utils.TQDM

<br><br>

## ::: ultralytics.utils.SimpleClass

<br><br>

## ::: ultralytics.utils.IterableSimpleNamespace

<br><br>

## ::: ultralytics.utils.ThreadingLocked

<br><br>

## ::: ultralytics.utils.TryExcept

<br><br>

## ::: ultralytics.utils.Retry

<br><br>

## ::: ultralytics.utils.SettingsManager

<br><br>

## ::: ultralytics.utils.plt_settings



<br><br>



## ::: ultralytics.utils.set_logging

<br><br>

## ::: ultralytics.utils.emojis

<br><br>

## ::: ultralytics.utils.yaml_save



<br><br>



## ::: ultralytics.utils.yaml_load

<br><br>

## ::: ultralytics.utils.yaml_print



<br><br>



## ::: ultralytics.utils.is_ubuntu

<br><br>

## ::: ultralytics.utils.is_colab



<br><br>



## ::: ultralytics.utils.is_kaggle

<br><br>

## ::: ultralytics.utils.is_jupyter



<br><br>



## ::: ultralytics.utils.is_docker

<br><br>

## ::: ultralytics.utils.is_online



<br><br>



## ::: ultralytics.utils.is_pip_package



<br><br>



## ::: ultralytics.utils.is_dir_writeable



<br><br>



## ::: ultralytics.utils.is_pytest_running



<br><br>



## ::: ultralytics.utils.is_github_action_running

<br><br>

## ::: ultralytics.utils.is_git_dir

<br><br>

## ::: ultralytics.utils.get_git_dir

<br><br>

## ::: ultralytics.utils.get_git_origin_url



<br><br>



## ::: ultralytics.utils.get_git_branch



<br><br>



## ::: ultralytics.utils.get_default_args



<br><br>



## ::: ultralytics.utils.get_ubuntu_version



<br><br>



## ::: ultralytics.utils.get_user_config_dir

<br><br>

## ::: ultralytics.utils.colorstr

<br><br>

## ::: ultralytics.utils.remove_colorstr



<br><br>



## ::: ultralytics.utils.threaded



<br><br>



## ::: ultralytics.utils.set_sentry

<br><br>

## ::: ultralytics.utils.deprecation_warn



<br><br>



## ::: ultralytics.utils.clean_url

<br><br>

## ::: ultralytics.utils.url2file

<br><br>