You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
The CPython core development community is urging users to migrate to Python 3 as it will be the only version that will be updated for bugs and security vulnerabilities. After nearly 20 years of development on the Python 2 series, the last major version 2.7 will be released in April 2020, and then all development will cease for Python 2. Users are urged to migrate to Python 3 to benefit from its ma
numbaというライブラリを使うと、Pythonのコードを比較的簡単に高速化できます。 うまくいけば、from numba import jitを書いて、高速化したい関数の前の行に@jitを書くだけで高速化できます。 仕組みとしては、numbaはPythonの仮想マシンコードを取得し、LLVM IRにコンパイルし、LLVMを使ってネイティブコードにするようです。 初回実行時は、コンパイル処理が走るので、若干遅くなりますが、重い処理だと、コンパイル時間を考えてもnumbaの方が速いこともあります。 利点と欠点 先に述べておきます。 利点 場合によっては、コード自体は改造せずに手軽に高速化できる コードの改造があったとしても、軽微な改造で済むことも多い 別ファイルに分けてビルドする、みたいな手間なことが必要なく、手軽に.pyファイルの中で使える 欠点 すべてのPython機能がサポートされてい
この記事はJX通信社 Advent Calendar 2019 の23日めの記事です。 昨日は Yosk さんの 名刺作成をデザイナーの業務から外して、効率化させた話 でした。 こんにちは、サーバーサイドエンジニアの @kimihiro_n です。 今回は Python の Immutable を最大限活用してみる話を書いてみます。 【2019/12/23 訂正 1 】 : NamedTupleを使う際、同値であればオブジェクト自体も同一であると書いてましたがこちらは誤りでした。 個々の id を調べてみると別々のオブジェクトが割り当てられていたため、記事の表現を一部修正しました。 【2019/12/24 訂正 2 】: コメントにて、Java の String オブジェクトも不変であるというご指摘をいただきました。 不変であることとオブジェクトが同一であることの性質を混同してしまっていた
この記事は Python Advent Calendar 2019 の 19 日目の記事です。 🐍 あらすじ Python のパッケージ管理。特にここ数年で新しいツールが多く出たこともあり、一体何を使うべきなのか、少し調べただけでは分からないと思います。本記事では、新しめの管理ツールを独断と偏見で比較します。著者は Poetry 信者なのでバイアスが掛かっているので悪しからず。 本記事で書いていること Pipenv、Poetry、Pyflow の違いと使い方 本記事で書いていないこと Pyenv、Venv、Virtualenv などの既存ツールの説明 著者の環境は以下の通り。 Ubuntu 18.04 Python 3.8.0 Pipenv 2018.11.26 Poetry 1.0.0 Pyflow 0.2.1 特に Poetry と Pyflow は開発途中なので、本記事の内容と違う
pybind11 (v3) — Seamless interoperability between C++ and Python Setuptools example • Scikit-build example • CMake example pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. Its goals and syntax are similar to the excellent Boost.Python library by David Abrahams: to minimize boilerplate code in tradi
[build-system] requires = ["poetry-core>=2.0.0,<3.0.0"] build-backend = "poetry.core.masonry.api" [project] name = "my-package" version = "0.1.0" description = "The description of the package" readme = "README.md" license = "MIT" license-files = ["LICENSE"] # No Python upper bound for package metadata requires-python = ">=3.9" authors = [ { name = "Sébastien Eustace", email = "sebastien@eustace.i
Introduction Poetry is a tool for dependency management and packaging in Python. Basic usage For the basic usage introduction we will be installing pendulum, a datetime library. Managing dependencies Poetry supports specifying main dependencies in the project.dependencies section of your pyproject.toml according to PEP 621. Libraries This chapter will tell you how to make your library installable
Netflixのデータサイエンティストチームが、「Metaflow Python」ライブラリーをオープンソース化している。このライブラリーはデータサイエンス分野におけるワークローの構築やデプロイに用いる「人間中心の機械学習(ML)インフラ」における重要なパーツだ。 大手ビデオストリーミング企業であるNetflixは脚本の分析から、制作スケジュールの最適化、顧客によるサービス解約の予測、価格設定、翻訳、同社の大規模なコンテンツ配信ネットワークの最適化に至るまで、業務のあらゆる側面でMLを活用している。 同社のブログ投稿によるとMetaflowは、ビジネスロジックをPythonのコードで表現したいが、オブジェクト階層や、パッケージ関連の問題、自らの仕事と直接関連しない不明瞭なAPIといったエンジニアリング上の問題に煩わされたくないというデータサイエンティストの生産性を向上させるために作り上げら
Metaflow is a human-centric framework designed to help scientists and engineers build and manage real-life AI and ML systems. Serving teams of all sizes and scale, Metaflow streamlines the entire development lifecycle—from rapid prototyping in notebooks to reliable, maintainable production deployments—enabling teams to iterate quickly and deliver robust systems efficiently. Originally developed at
Warning This section contains snippets that were automatically translated from C++ to Python and may contain errors. Introduction to Model/View Programming¶ Qt contains a set of item view classes that use a model/view architecture to manage the relationship between data and the way it is presented to the user. The separation of functionality introduced by this architecture gives developers greater
The Hitchhiker’s Guide to Python!¶ Greetings, Earthling! Welcome to The Hitchhiker’s Guide to Python. This is a living, breathing guide. If you’d like to contribute, fork us on GitHub! This handcrafted guide exists to provide both novice and expert Python developers a best practice handbook for the installation, configuration, and usage of Python on a daily basis. This guide is opinionated in a wa
About reserved postingIf you register a secret article by the day before the same day, it will be automatically published around 7:00 on the same day. About posting periodOnly articles submitted after November 01, 2019 can be registered. (Secret articles can be registered anytime articles are posted.)
デコレーターとは 本連載の第15回「ローカル関数とラムダ式」では関数を受け取る関数や、関数を戻り値とする関数を取り上げた。今回紹介するデコレーターとは、基本的には関数を受け取り、関数を戻り値とする関数のことだ(そうではない場合もある。後述)。クラスを受け取り、クラスを戻り値とする関数やクラスも書けるが、本稿では関数を受け取り、関数を戻り値とする基本的なデコレーターだけを紹介する。 「関数を受け取り、関数を戻り値とする関数」というと難しく感じるかもしれないが、デコレーターの使用例は第29回「クラス変数/クラスメソッド/スタティックメソッド」の「クラスメソッド」で既に紹介している。デコレーターを使うだけなら、以下のように「@デコレーター」(デコレーター式)を使って関数を修飾(デコレート)するだけでよい(以下の例はメソッドだが、使い方は同じ)。
テクニカルアーティストとして、Shotgun、Maya のツール開発を主に行っています。 前職では機械メーカーの工場で、生産技術者として歯車加工技術や機械製図の社内講師などをしており、完全に機械系エンジニアでした。ハード・ソフト問わずものづくりが好きです。 業務以外でもプログラミング言語を漁ったりお絵描きをしながら、卓上旋盤と5台の自転車と共に暮らしています。 HP:https://enomgithub.github.io/ 第3回:Perforceと連携してみよう 2020.03.30 皆さんこんにちは。スマイルテクノロジーユナイテッド株式会社の榎本です。今回は、前回と同じようにファイルアップローダーを拡張していくことで、Shotgun スクリプトに慣れていただきたいと思います。 第2回:Slackと連携してみよう 2020.01.23 皆さんこんにちは。スマイルテクノロジーユナイテッド
Flow Production Tracking コラム スクリプト・API スマイルテクノロジーユナイテッド チュートリアル 上級者 中級者 はじめに 皆さん初めまして。スマイルテクノロジーユナイテッド株式会社(以下、STU)でテクニカルアーティストを務める榎本と申します。STU は、7割強がテクニカルアーティストを占める技術者の集団です。 この度、Shotgun 向けおよび Shotgun と他サービスとの連携を行うツールの開発経験を基に、コラムを執筆させていただくことになりました。よろしくお願いします。 このコラムは、Python を使って Shotgun のカスタマイズをしたいけれど、はじめの一歩が踏み出せないという方の後押しをするためのものです。題材としては、ローカルフォルダから Shotgun プロジェクトへファイルを一括アップロードするファイルアップローダーの実装と機能追加を
Pythonのimport文を提示する"quick fix" - Python extension for Visual Studio Code 現地時間18日、Microsoft公式ブログはVisual Studio CodeのPythonエクステンションの2019年11月のアップデート情報を掲載。足りないimport文を提示する"quick fix"を新搭載したことを紹介している。 寄稿するProgram ManagerのLuciana Abudさんが"魔法のような"と紹介する"quick fix"は、Visual Studio CodeのPython用エクステンション「Python extension for Visual Studio Code」にパッケージやモジュールを読み込むfromやimport文をサジェストし、足りないヘッダを自動記述する機能。Python Language
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く