Pesquisar

Artigo
· Nov. 24 5min de leitura

Pythonでの仮想環境入門

img

この記事では、Pythonでの仮想環境の概念を紹介します。仮想環境は、依存関係を管理してプロジェクトをOSから分離するために不可欠です。

仮想環境とは?

仮想環境とは、次が含まれているフォルダのことです。

  • 特定のバージョンのPython
  • 最初は空のsite-packagesディレクトリ

仮想環境により、OSのPythonインストールとその他のプロジェクトからプロジェクトを分離できるようになります。

使用方法

仮想環境を使用するには、これらの手順に従います。

  1. 仮想環境を作成する:Pythonに標準搭載されている venv モジュールを使用すると、仮想環境を作成できます。 ターミナルを開いて、以下を実行します。

Discussão (0)0
Entre ou crie uma conta para continuar
InterSystems Oficial
· Nov. 24

InterSystems 宣布 InterSystems IRIS、InterSystems IRIS for Health 和 HealthShare Health Connect 2025.3 全面上市

InterSystems IRIS® 数据平台、InterSystems IRIS® data platform, InterSystems IRIS® for HealthTMHealthShare® Health Connect 2025.3 版本现已全面发布 (GA)。这是一个持续交付 (CD) 版本。

版本亮点:

  • 安全钱包: 用于管理敏感数据的新加密框架,建立在 IRISSECURITY 数据库上,提高了系统安全性和访问控制。
  • 扩展的可观察性和云集成:增强的 OpenTelemetry 指标,包括新增的进程指标和 ECP 指标,此外,日志存档现在支持使用 Azure Blob 存储,以实现经济高效的留存。
  • 数据和人工智能改进:外部表现在支持JOIN下推功能,以提升SQL性能;同时,向量搜索的HNSW索引已升级,可实现更快、更稳健的相似性搜索。
  • 医疗保健增强功能:改进了 FHIR 批量数据访问和身份验证功能。
  • 开发人员和用户界面更新: 互操作性用户界面增加了批量管理操作,扩大了生产配置中的搜索范围,提高了大规模生产的可用性,强化了现代化的用户体验。

请通过开发者社区分享您的反馈意见,以便我们共同打造更好的产品。

文档

有关所有重点功能的详细信息,请访问以下链接:

此外,请查看升级影响清单,轻松浏览升级到此版本时需要注意的所有变更。

抢先体验计划 (EAP)

如果您对抢先体验计划感兴趣,可以在此处注册

下载软件

与往常一样,持续交付(CD)版本附带适用于所有支持平台的经典安装包,以及 Docker 容器格式的容器镜像。

经典安装包

InterSystems IRIS 和 InterSystems IRIS for Health 的安装包可从 WRC 的 InterSystems IRIS 页面获取,Health Connect 的安装包可从 WRC 的HealthShare页面获取。还可在 Evaluation Services 网站上找到套件。

可用性和软件包信息

该版本包含适用于所有支持平台的经典安装包,以及 Docker 容器格式的容器镜像。 有关完整列表,请参阅 “受支持平台"文档

此持续交付版本的构建编号为2025.3.0.226.0

容器镜像可从InterSystems 容器注册中心获取。容器同时标记为 "2025.3"和"latest-cd"

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Nov. 24

投票受付中!:第3回 InterSystems Japan 技術文書ライティングコンテスト

開発者の皆さん、こんにちは!

🖋 InterSystems Japan 技術文書ライティングコンテスト2025:IRISに関連した記事 🖋の応募受付期間が終了し、残るは投票のみとなりました!

第3回コンテストは✨3作品✨の応募がありました!ご応募ありがとうございました!

コミュニティメンバーは「イイネ」 をクリックすることで投票できます。2025年11月30日(日)23時59分59秒 まで投票受付中です。

素晴らしい3作品のなかから、🔥これだ!🔥と思う記事の「イイネ」をクリックしてください。

以下、投票方法についてご案内します。

 

(1) 開発者コミュニティにログインします。

ログインアカウントをお持ちでない方は、コミュニティページ上部の  (下図赤枠)をクリックし、アカウント登録を行って下さい。

クリックした後の流れは「アカウント作成方法」の記事をご参照ください。

 

(2) コンテスト一覧ページに移動します👉第3回技術文書ライティングコンテスト:一覧ページ

投稿記事を👀じっくり読みます👀

(3) 「いいね」をクリックします。

投稿記事一覧ページ上でクリックする場合はそれぞれの投稿画面左下にあるのマークをクリックします。クリック前はグレーの表示ですがクリック後に変わります。

各記事を参照している状態で「いいね」をクリックする場合は、画面左側にアイコン一覧が縦に並んでいますのでのマークをクリックします。

良い記事だな!こんな風に書けるのか!と思ったらをクリックして作者を応援しましょう!📣

 

なお、今年も審査員投票については、コミュニティチームが選出した方々にお願いしています。

  • 1位:5点
  • 2位:3点
  • 3位:2点

審査員の皆様、投票よろしくお願いします!

Discussão (0)2
Entre ou crie uma conta para continuar
Artigo
· Nov. 24 4min de leitura

Bringing Legacy Code Into Current Versions - Tips and Tricks

Inevitably, you will eventually need to move your code up from one version of IRIS or Cache to a more recent version of IRIS. There are a few good steps you can take to set yourself up for success in that process.

Read Documentation Carefully

Before you move anything you should check out the IRIS documentation page for many useful resources on changes made to various versions of IRIS. If you are upgrading through multiple versions, you will want to check on the documentation for all of them, not just the version to which you will upgrade. For each version, if you click on the Maintenance Release Changes link, you will see a developer upgrade checklist that is very helpful in providing guidance on what you will need to change. You will also want to check the Release Notes. It has a list of what new features are available that might be of use to you, and it has a list of what is newly-deprecated. You should also check the Product News and Alerts page for more recent, urgent matters. In fact, it is a good idea to check that page periodically or subscribe to the alerts to stay on top of changes even when you are not going through an upgrade!

Know Your Alternatives

Based on what you read in the documentation, you may see a pile of issues coming. Before you start running them down, however, you should take some time to get to know what your alternative options are. If a specific ObjectScript class you like to use has been deprecated or removed, do not just look for an ObjectScript replacement if you are going to have integrated Python available. If you have been a Zen reports user, InterSystems reports is the replacement for that tool. $ZF -100 has replaced $ZF -1. Many other removed pieces have newer replacements, and you should look for them before you start reinventing the wheel.

Scan, Deprecate, Scan

Make yourself comfortable with the %SYSTEM.CodeScanner class. This class includes class queries (or class methods in earlier versions) that detect the use of deprecated items and a few other common issues such as using $ZF -1 or $ZF -2, using %this to reference the current object, use of old class keywords, etc. 

Once you have scanned your code, you will be faced with some choices as to how to address these issues. Some of them will be very simple to fix by changing your code to use new tools and methods. Other pieces will require more effort. In the midst of this decision making, remember that you can deprecate your own code! The Deprecated key word can be applied to parameters, properties, methods, and even entire classes. This is often overlooked by programmers. If you decide to deprecate some things, you can then use the code scanner class again to find out where all of those things are used, then address those issues, and so on. Depending on how deep this rabbit hole goes for you, it may take several passes to sort all of this out. It can be a lot of work now, but it can save a lot of headaches later.

Re-Tune Those Tables

Table tuning has been around for a while now, and it has gone through some changes. There have been significant improvements to that process even as recently as version 2025.2. If you are bringing forward older code and have not re-tuned your tables, you may be missing out on some great improvements to that tool. If you take advantage of that, you may be able to gain a fair amount of efficiency without touching a single line of code!

Test Thoroughly

No amount of preparedness or tools can fully replace good old-fashioned testing. Whether your preferred testing mechanism is unit testing, Postman, or just Teresa in customer support who knows exactly how your users tend to break things, make sure they are engaged and active in thoroughly testing your code on your new version. Take nothing for granted.

Engage the Community

A lot of us here have been around the block a few times. I will not name names and I definitely won’t list ages, but at any point during this process the very community website that you are on right now is a great resource. If you need a replacement for older code, you can ask if anyone has one and how they made the jump from one to the other. This is a very helpful place for any situation. 

If you have an idea for how to improve the upgrade process in the future, please post it in the Ideas Portal. InterSystems and the community users check this portal regularly for ideas on how to improve things, and you may end up saving yourself work in the future.

If you come across a problem you just can’t possibly solve on your own or with community help, there is also always the Worldwide Response Center where you can get more in-depth help directly from InterSystems.

Now let’s hear from the rest of the community too. Let everyone know how you have managed such upgrades before. Where did you succeed, where did you fail, and what will you do differently next time?

Discussão (0)2
Entre ou crie uma conta para continuar
Artigo
· Nov. 24 2min de leitura

Cloud Services JDBC SQL Shell with sqlline

 

InterSystems Cloud JDBC SQL Shell

A simple way to connect, explore, and debug InterSytems Cloud Services over JDBC with sqlline.

 


This post backs the open exhange submission that offers slightly more detailed on how to get parked on an InterSystems Cloud sql prompt quickly.  Here will will connect to a single cloud sql over jdbc and perform some operations, and secondly connect to multiple and federate the sql to multiple deployments at once.

Quick Start

Going to keep this brief and hope it remains simple .

Get the app

https://github.com/sween/isc-cloud-jdbc-sql-shell

Download

  • Driver ☕
  • Certificate(s) for Deployments 📃

Build

cd isc-cloud-jdbc-sql-shell
docker build -t isc-cloud-jdbc-sql-shell .

Run

Fill out run.sh like its a form, includes credentials and jdbc url information

bash run.sh

sqlline

No sense in rehashing the extensive manual for sqlline once you are connected, but here is some example usage across a couple of InterSystems Cloud offers in the form of an article.

This is just an implementation of the great sqlline, with straightforward tls connectivity for simplicity and easy use.

Usage Examples

Session Logging

Here we will setup logging the shell to the output folder, and start interrogating the database.  This will end up on your local system when you are done with the session.

!set script /output/debug_omop_jdbc.log


Worth showing this as if you havent already picked up on it, there is a `!command` interface to sqlline you can find with !help.

Create Schema and Copy Table

Not earth shattering, but, you can see the result in the Portal... here we create a schema and copy a table from one schema to the newly created schema.

sween@pop-os:~/Desktop/OMOP/isc-cloud-sql-shell$ bash run.sh
Starting sqlline and connecting to:
  URL    : jdbc:IRIS://k8s-0a6bc2ca-a8e3f174-84fc3b8135-aa1cd181c9825c06.elb.us-east-1.amazonaws.com:443/USER/:::true
  Driver : com.intersystems.jdbc.IRISDriver
  User   : SQLAdmin

Transaction isolation level TRANSACTION_REPEATABLE_READ is not supported. Default (TRANSACTION_READ_UNCOMMITTED) will be used instead.
sqlline version 1.12.0
ISC > CREATE SCHEMA OMOPCDM54BAK;
No rows affected (0.091 seconds)
ISC > CREATE TABLE OMOPCDM54BAK.person AS SELECT * FROM OMOPCDM54.person;
1,101,000 rows affected (5.84 seconds)
ISC >

Federated SQL Across Deployments

Sorta earth shattering... while connected to the deployment in context when you launched it, also connect to another database, of a different type of offer and do federated sql against them !all.  There is a "certs" folder you can just go ahead and dump all of the certificates in there for the deployments at hand and rebuild the container at will.

sqlline supports `!connect` to add connections to your list so you can either select them, or do things against `!all`

🎉

Discussão (0)1
Entre ou crie uma conta para continuar