@amneumarkt · Post #349 · 03/05/2022, 06:12
#python Anaconda open sourced this... I have no idea what this is for... https://github.com/pyscript/pyscript
Hashtags
TGINSIGHT SIMILAR POSTS
Canal fuente @python_academy · Post #1518 · 12 nov
Автоматическое форматирование Python кода с помощью Black Сегодня мы расскажем вам о незаменимом инструменте для поддержания структуры и читаемости вашего Python кода - Black. Black - это автоматический форматтер кода, который помогает вам избавиться от несогласованных стилей и выравнивает ваш код согласно официальным рекомендациям PEP 8. Что такое Black? Black - это инструмент для автоматического форматирования Python кода, разработанный с учетом строгих принципов. Он призван обеспечить единообразие в структуре кода и упростить его чтение для всех участников проекта. Преимущества использования Black: - Единообразие: Black гарантирует, что ваш код будет соответствовать стандартам PEP 8, что делает его более читаемым и понятным. - Автоматизация:Black автоматически форматирует код, что позволяет избежать рутинных задач по выравниванию и форматированию. - Интеграция:Black легко интегрируется в ваш рабочий процесс с помощью популярных инструментов разработки, таких как VSCode, PyCharm и других. - Кастомизация: Вы можете настроить некоторые параметры Black, чтобы адаптировать его к вашим потребностям. Как использовать Black? Для начала, установите Black с помощью pip: pip install black Затем, вы можете использовать Black для форматирования вашего кода следующим образом: black your_python_file.py Black автоматически примет ваш код и приведет его к согласованному стилю. Вы также можете настроить некоторые аспекты форматирования, чтобы сделать его идеально подходящим для вашего проекта. #python#Black#форматирование#код#PEP8
Búsqueda global general
@amneumarkt · Post #349 · 03/05/2022, 06:12
#python Anaconda open sourced this... I have no idea what this is for... https://github.com/pyscript/pyscript
Hashtags
@amneumarkt · Post #322 · 03/03/2022, 07:29
#python I find poetry a great tool to manage Python requirements. I used to manage Python requirements using requirements.txt(environment.yaml) and install them using pip(conda). The thing is, in this stack, we have to pin the version ranges manually. It is quite tedious, and we easily run into version problems for a large project. Poetry is the savior here. When developing a package, we add some initial dependencies to the pyproject.yaml, a PEP standard. Whenever a new package is needed, we run poetry add package-name. Poetry tries to figure out the compatible versions. A lock file for the dependencies with restricted versions will be created or updated. To recreate an identical python environment, we only need to run poetry install. There's one drawback and may be quite painful at some point. Recreating the lock file for dependencies is extremely slow when the complexity grows in the requirements. But this is not a problem if poetry but rather constraints from pypi. One solution to this problem is to use cache. https://python-poetry.org/
Hashtags
@amneumarkt · Post #311 · 17/01/2022, 21:15
#python I thought it was a trivial talk in the beginning. But I quickly realized that I may know every each piece of the code mentioned in the video but the philosophy is what makes it exciting. He talked about some fundamental ideas of Python, e.g., protocols. After watching this video, an idea came to me. Pytorch lightning has implanted a lot of hooks in a very pythonic way. This is what makes pytorch lightning easy to use. (So if you do a lot of machine learning experiments, pytorch lightning is worth a try.) https://youtu.be/cKPlPJyQrt4
Hashtags
Python细节 #python
Hashtags
#python
Hashtags
https://py.checkio.org/ Python编程训练 #python
Hashtags
@repo_science · Post #4106 · 25/04/2024, 00:44
#Python 🖥 Curso de Python de 16 días ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@repo_science · Post #4105 · 22/04/2024, 21:43
#python 🖥 The Complete Python Course 2024 ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@repo_science · Post #4088 · 09/04/2024, 15:30
#python 🖥 Advanced Python ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----
Hashtags
@repo_science · Post #4083 · 05/04/2024, 04:14
#Python 🤩 Python: The Professional Guide For Beginners ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----
Hashtags
@repo_science · Post #4056 · 07/03/2024, 21:39
#python 🐍 Beyond the Basic Stuff with Python ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@repo_science · Post #4035 · 17/02/2024, 23:05
🖥 Tip: You can use functools.reduce() in #Python to apply a function to all elements of the iterable set. ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags