並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 27 件 / 27件

新着順 人気順

IPythonの検索結果1 - 27 件 / 27件

  • 初心者でも使いやすい!「iPython(アイパイソン)」の活用方法総まとめ

    iPythonとは iPythonはPythonの対話型インタプリタを実行するためのシェルになります。対話型インタプリタとは、対話的に1行ずつプログラムを実行していく方式のことで、シェルとはユーザとのインターフェースを提供するためのプログラムのことです。オープンソースのソフトウェアとして開発されていて、ソースコードもGithub(ギットハブ)で公開されています。 iPythonはCPython(シーパイソン)に内蔵されているシェルに比べてコードのハイライティングやタブによる補完といった便利な機能を使えます。CPythonはC言語で書かれたPythonのリファレンス実装です。これらの便利な機能を使えることで効率よくプログラミングできます。 また、iPythonはプロセス間通信や並列コンピューティングの仕組みも持っています。iPythonから並列コンピューティングの機能であるMPI(Messa

      初心者でも使いやすい!「iPython(アイパイソン)」の活用方法総まとめ
    • GitHub - karolzak/ipyplot: IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.

      Share: IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks cells. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images. Displaying big numbers of images with Python in Notebooks always was a big pain for me as I always used matplotlib for that task and never have I even considered if it can

        GitHub - karolzak/ipyplot: IPyPlot is a small python package offering fast and efficient plotting of images inside Python Notebooks. It's using IPython with HTML for faster, richer and more interactive way of displaying big numbers of images.
      • GitHub - santiagobasulto/ipython-gpt: An ChatGPT integration for Jupyter Notebooks and the IPython Shell

        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

          GitHub - santiagobasulto/ipython-gpt: An ChatGPT integration for Jupyter Notebooks and the IPython Shell
        • How do you suppress output in Jupyter running IPython?

          Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives

            How do you suppress output in Jupyter running IPython?
          • Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed · Issue #12740 · ipython/ipython

            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

              Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed · Issue #12740 · ipython/ipython
            • GitHub - chervonij/DFL-Colab: DeepFaceLab fork which provides IPython Notebook to use DFL with Google Colab

              This project provides you IPython Notebook to use DeepFaceLab with Google Colaboratory. You can create your deepfake video even if you don’t have a powerful GPU on a desktop PC. Keep in mind that working with a remote server imposes some restrictions. Because of this, working with DFL-Colab is not so convenient as working with DeepFaceLab directly on your computer. DFL-Colab uses DeepFaceLab and t

                GitHub - chervonij/DFL-Colab: DeepFaceLab fork which provides IPython Notebook to use DFL with Google Colab
              • ImportError: No module named 'jupyter_nbextensions_configurator' · Issue #1115 · ipython-contrib/jupyter_contrib_nbextensions

                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

                  ImportError: No module named 'jupyter_nbextensions_configurator' · Issue #1115 · ipython-contrib/jupyter_contrib_nbextensions
                • DjangoでiPython/ Jupyter notebookを使う方法

                  こんばんは、エンジニアの眠れない夜です。 Djangoの開発中にPythonのスクリプトを書きたいことがありますよね? そんな時に便利なのがiPython/ Jupyter notebookです。普段から利用している人も多いと思います。 DjangoでiPython/ Jupyter notebookを利用するためには初期設定が必要です。 ここではDjangoでiPython/ Jupyter notebookを使う方法をご紹介します。 iPython/ Jupyter notebookをDjangoで使うための初期設定 まずは django-extensions をインストールします。 ドキュメントはこちら→django-extensions ドキュメント pip install django-extensions Djangoの settingsに ‘django-extensions

                    DjangoでiPython/ Jupyter notebookを使う方法
                  • Python: Jupyter の IPython Kernel にスタートアップスクリプトを登録する - CUBE SUGAR CONTAINER

                    今回は Jupyter の IPython Kernel に、スタートアップスクリプトを登録する方法について書いてみる。 スタートアップスクリプトというのは、カーネルの起動時に読み込まれるコードのこと。 IPython Kernel というのは、いわゆるフツーのノートブックを Jupyter で実行するときに動いているバックエンドのプログラムを指している。 使った環境は次のとおり。 $ sw_vers ProductName: macOS ProductVersion: 11.4 BuildVersion: 20F71 $ python -V Python 3.9.5 $ jupyter --version jupyter core : 4.7.1 jupyter-notebook : 6.4.0 qtconsole : not installed ipython : 7.24.1 ipy

                      Python: Jupyter の IPython Kernel にスタートアップスクリプトを登録する - CUBE SUGAR CONTAINER
                    • 【IPython】magic commandまとめ | Mitsuru Takahashi Personal Site

                      個人的に使えるなと思ったIPythonのmagic commandをまとめてみました。 %lsmagic 現在のnotebookで使用可能なIPythonのmagic command一覧を表示します。 In[1]: %lsmagic Out[2]: Available line magics: %alias %alias_magic %autoawait %autocall %automagic %autosave %bookmark %cat %cd %clear %colors %conda %config %connect_info %cp %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %hist %history %killbgscripts %ldir %less %lf %lk %ll %load %load_ext

                        【IPython】magic commandまとめ | Mitsuru Takahashi Personal Site
                      • VSCodeのJupyterでIPython.display.Audio() を使いたい - Qiita

                        2022/10/5 追記 アプデで普通に対応したそうです。 Visual Studio Code August 2022 問題 vscodeでnotebook(.ipynb)を開いてIPython.display.Audio()を使用しても こうなって再生できない。パスを直接入れても同様。 調べてみると IPython.display.Audioで音声が再生できないので調べてみました|Discipline and Action 私はvscode上でjupyter notebookを編集していたのですが、vscodeでは動画、音声の再生がサポートされていないようです。 ということでした。 解決策 GitHubのIssuesに解決案がありました。 IPython.display.Audio not working for WAV audio · Issue #1012 · microsoft/

                          VSCodeのJupyterでIPython.display.Audio() を使いたい - Qiita
                        • IPython Notebookの自動カッコ補完を無効にする - keisukeのブログ

                          http://stackoverflow.com/questions/22843891/turn-off-auto-closing-parentheses-in-ipython IPython Notebookの自動カッコ補完を無効にするには、 ~/.ipython/profile_default/static/custom/custom.js に次を書き加えば良い: if (IPython.CodeCell) { IPython.CodeCell.options_default.cm_config.autoCloseBrackets = false; }

                            IPython Notebookの自動カッコ補完を無効にする - keisukeのブログ
                          • GitHub - jakevdp/JSAnimation: [DEPRECATED] An IPython notebook-compatible Javascript/HTML viewer for matplotlib animations

                            JSAnimation NOTE: this package is part of matplotlib as of version 2.1. The code here is maintained only for historical purposes. Copyright (c) 2013, Jake Vanderplas License: BSD This package implements an HTML/Javascript writer for Matplotlib animations. The result can be embedded in a web page, or an IPython notebook. Example See a rendered example: please note the browser requirements listedbel

                              GitHub - jakevdp/JSAnimation: [DEPRECATED] An IPython notebook-compatible Javascript/HTML viewer for matplotlib animations
                            • ipythonでプロンプトをカスタマイズする - Qiita

                              from IPython.terminal.prompts import Prompts, Token import os class MyPrompt(Prompts): def in_prompt_tokens(self, cli=None): return [(Token.Prompt, '>>> ')] def out_prompt_tokens(self, cli=None): return [] ip = get_ipython() ip.prompts = MyPrompt(ip) ipythonを起動してこれを実行すればその場でプロンプトが>>> に変わる。 くわて、Out[1]みたいなアウトプット時の表示も消える。 スタートアップに設定 毎回上記のスクリプトをいちいち書いて実行するのは面倒だから、ipython起動時に自動で実行するように設定する。 そのために、~/.ip

                                ipythonでプロンプトをカスタマイズする - Qiita
                              • ipythonの色が見づらい - Qiita

                                色が見づらい.ひたすらに色が見づらい.辛い. 設定を変えました.OSはubuntuです. 参照はこちら 解決法 まず,下のコマンドを打ち込み,ipythonのconfig設定ファイルを生成し,編集画面に移る. user@user:~$ cd ~ user@user:~$ ipython profile create # できたよーというようなことが表示される user@user:~$ emacs ~/.ipython/profile_default/ipython_config.py

                                  ipythonの色が見づらい - Qiita
                                • Jupyter Notebook (IPython) でセルの出力をリッチにする - Qiita

                                  みなさん、SymPyは使ってますか?Jupyter NotebookでSymPyを使用すると、出力された式が美しく成形されて表示されます。 こんな感じですね。こんな風にリッチな出力ができるオブジェクトはどのように作るかご存じでしょうか? IPythonのドキュメントに書いてありました。_repr_*_という形式の名前のメソッドを実装することで実現できます。この*に当てはまるものは、 svg png jpeg html javascript markdown latex があります。SymPyはおそらくLaTeXで実装されているのだと思いますが、今回は分かりやすいSVGを使ってみましょう。 class Component(): def __init__(self, items = None): self.items = items or [self] def __add__(self, ta

                                    Jupyter Notebook (IPython) でセルの出力をリッチにする - Qiita
                                  • IPython Notebookを簡単に共有する方法 - Qiita

                                    はじめに IPython Notebook(Jupyter Notebook)を報告書に添付するなど、環境がインストールされていない方にシェアする場合の備忘録です。 JupyterLabからpdf生成もありますが、拡張機能のインストールが必要だそうで、HTML出力を選びました。 https://teratail.com/questions/196951 参考 こちらを参考にさせていただきました。一気に変換する場合はこの参照先に書かれているコマンドの方が便利です。 https://qiita.com/supersaiakujin/items/1429b7529d858ee4177b 準備 報告書に添付する場合、警告を表示したくなかったので、こちらを参考に警告を非表示にしました。 https://note.nkmk.me/python-warnings-ignore-warning/ 手順 F

                                      IPython Notebookを簡単に共有する方法 - Qiita
                                    • テキスト中のIPythonコンソールのインデックスを自動で振り直す - Qiita

                                      Qiitaの記事にIPythonコンソールの実行結果を書きたいことがありました。 その際にコピペしたテキストのInオブジェクト、Outオブジェクトのインデックスがバラバラで、手作業で振り直すのが面倒だったのでスクリプトを書きました。 以下、README.mdをそのまま抜粋します。 renumber_ipython_inout.py テキストに含まれるIPythonコンソールIn、Outオブジェクトのインデックスの再割り当てを行うスクリプトです。 このスクリプトの使い道 IPythonコンソールの実行結果のコピペを、きれいにして共有したいときなどにお使いください。 例えば、以下のようにインデックスがバラバラなテキストが、 In [2]: index = ' ^100hoge' In [3]: import re In [13]: match = re.match(r'^\s*(\^)(\d*

                                        テキスト中のIPythonコンソールのインデックスを自動で振り直す - Qiita
                                      • 【Python基礎】出力結果をクリアする方法(IPython.display clear_output)とmatplotlibのグラフ表示のクリア | 3PySci

                                        ホームProgramming【Python基礎】出力結果をクリアする方法(IPython.display clear_output)とmatplotlibのグラフ表示のクリア 【Python基礎】出力結果をクリアする方法(IPython.display clear_output)とmatplotlibのグラフ表示のクリア 2023 6/09

                                          【Python基礎】出力結果をクリアする方法(IPython.display clear_output)とmatplotlibのグラフ表示のクリア | 3PySci
                                        • 【Stable Diffusion】DiffusersでWebUIのHires.fix(latent)を再現してみる(Jupyter/Colab/ipythonなどで実行可能) - Qiita

                                          【Stable Diffusion】DiffusersでWebUIのHires.fix(latent)を再現してみる(Jupyter/Colab/ipythonなどで実行可能)PythonStableDiffusiondiffusersStableDiffusionWebUI はじめに Stable Diffusionの優れた拡張機能が使えるアプリとして有名なAUTOMATIC1111さんのstable-diffusion-webuiがありますが、中でも高画質化に貢献するHires.fixをDiffusersだけで再現できないかと思い、実装してみました。 実装のリポジトリ こちらにアップロードしました。あくまで私が解釈した処理なので、本家の処理方法と少し違うかもしれませんがご容赦ください。 本記事で行える機能 HuggingFaceやcivitaiにあるsafetensorsファイルを用意

                                            【Stable Diffusion】DiffusersでWebUIのHires.fix(latent)を再現してみる(Jupyter/Colab/ipythonなどで実行可能) - Qiita
                                          • IPythonでimport文を省略したいときの最適解 - Qiita

                                            はじめに ターミナル上でIPythonを実行したりJupyter QtConsole使ったりというときに、毎回import matplotlib.pyplot as pltと打ったり、NameError: name 'plt' is not definedでイラついたりを避けたいですよね。 よく見る解決策 IPythonは起動時にユーザーディレクトリからたどって /.ipython/profile_default/startupディレクトリ直下にあるpyファイルを全部(多分)実行します。この中にたとえば00-startup.pyファイルを # 00-startup.py import numpy as np import pandas as pd import matplotlib.pyplot as plt で保存しておくと、IPythonの起動後すぐにnpとか使えます 欠点 起動時にi

                                              IPythonでimport文を省略したいときの最適解 - Qiita
                                            • Jupyter(IPython)でNoteBookをモジュールとしてインポートする方法 - Qiita

                                              Jupyter notebook で別のnotebookの関数を使う方法は公式サイトやQiita でも紹介されていますが、それをちょっとだけ便利にする方法を紹介します。 基本的には公式サイトの通りです。 https://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Importing%20Notebooks.html Qiitaにも良い紹介記事があります。 https://qiita.com/tdual/items/32d3918b4c8dd1f703e7 ただ、使いにくいのは import 時に notebook の内容がすべて実行されてしまうことです。全部のセルではなく一部のセルに定義した変数や関数だけ他の notebook でも使いたい! fastai の nbdev では、そのような場合はセルの先頭に"#ex

                                                Jupyter(IPython)でNoteBookをモジュールとしてインポートする方法 - Qiita
                                              • [neovimプラグイン] ipython実行環境を作った - Qiita

                                                neovimでpythonコードを書いている時に、エディタから抜けずにそのまま実行したくなります。 quickrunやasyncrunだと実行した後に対話的な変数の操作やデータの分析ができません。 Vimの学習も兼ねて、neovimの標準機能であるターミナルモード(Vim8にもありますが)を利用して編集中のPythonスクリプトをIpythonに渡して実行するプラグインを作ることにしました。 GitHubリポジトリ(szkny/Ipython) 概要 ターミナルモードを利用してipythonコンソールを呼び出します。 :Ipythonコマンドで編集中のスクリプトを実行後、<C-w>wで操作ウィンドウを切り替えれば対話環境に移れます。 内部ではneovim標準のjobsend関数で%run filename.pyをipythonに送ります。 このプラグインでできること Ipythonコンソー

                                                  [neovimプラグイン] ipython実行環境を作った - Qiita
                                                • ipythonをvimモードにする - 雑多な技術系メモ

                                                  ~/.ipython/profile_default/ipython_config.py に以下の行を追加(なければ作る) c.TerminalInteractiveShell.editing_mode = 'vi'

                                                    ipythonをvimモードにする - 雑多な技術系メモ
                                                  • ipython 自作モジュールのパスを通して起動するTips - Qiita

                                                    作成中のモジュールをちょっとテストしたい ということが多々あります。 ある程度開発が進んできたらちゃんとテストツールを使って試験データを作って、、、とすればいいのですけれど、まだそこまで仕様が固まってないとか、そもそもテストデータ作るほどの規模でもないしなーと言うくらいのときのTIPS。 どうするか? こうすればいいだけ。 ./ならパス通す必要ないのでは? まぁ無いんですけど、ipythonの中に入ってからcdして目当てのスクリプトの入っているディレクトリに引っ越したり、あるいは同一ディレクトリ以外に配置したモジュール使ったりというのは往々にしてあるわけで、そういうときに起動前にワンライナーでPYTHONPATH与えておけばOKです。 そんだけ。

                                                      ipython 自作モジュールのパスを通して起動するTips - Qiita
                                                    • Macでアカウント名変更したらpipやipythonが使えなくなったので、pythonごと再インストールしたら治った - Qiita

                                                      Macでアカウント名変更したらpipやipythonが使えなくなったので、pythonごと再インストールしたら治ったPythonMacbrewpyenv 概要 macのアカウント名を変更したらpyenvでインストールしたpipやipythonが使えなくなったので、pythonを再インストールしたら使えるようになりました。 環境 macOS Catalina 10.15.4 Homebrew 2.2.11 pyenv 1.2.17 python 3.8.0 経緯 macにbrewを使ってpyenvをインストールし、そのpyenvでpythonをインストールして使っていました。 そのあと諸事情でmacのアカウント名(とホームディレクトリ名)を変更しました。アカウント名の変更方法は公式の説明に従いました。 変更自体はうまくできたのですが、pipやipythonを実行するときに下記のエラーが出て使

                                                        Macでアカウント名変更したらpipやipythonが使えなくなったので、pythonごと再インストールしたら治った - Qiita
                                                      • ColabやiPythonでファイルをオート・リロード - Qiita

                                                        Colabなどで開発しているとき、別ファイルのモジュールを書き換えてインポートしても、変更が反映されません。 呼び出しごとに別ファイルモジュールをリロードするには、以下を実行してから呼び出します。

                                                          ColabやiPythonでファイルをオート・リロード - Qiita
                                                        1