Qulacs-Osaka / scikit-qulacs

scikit-qulacs is a library for quantum neural network. This library is based on qulacs and named after scikit-learn.
https://qulacs-osaka.github.io/scikit-qulacs/index.html
MIT License
19 stars 6 forks source link

Tutorial in binder #235

Closed ikanago closed 1 year ago

ikanago commented 1 year ago

Binder でチュートリアルを実行できるようにしました. binder/runtime.txt で実行環境の Python のバージョンを指定しています. 例です: https://mybinder.org/v2/gh/Qulacs-Osaka/scikit-qulacs/tutorial-in-binder?labpath=doc%2Fsource%2Fnotebooks

codecov[bot] commented 1 year ago

Codecov Report

Merging #235 (c1de0bc) into main (94fb5da) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #235   +/-   ##
=======================================
  Coverage   91.85%   91.85%           
=======================================
  Files          12       12           
  Lines         884      884           
  Branches      169      171    +2     
=======================================
  Hits          812      812           
  Misses         41       41           
  Partials       31       31           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

forest1040 commented 1 year ago

Binder いいですね! しかし、Jupiter Notebookで動かない? 実行すると、PythonランタイムがBusyのままになってしまいます。。

ikanago commented 1 year ago

再現手順とかスクショがあればお願いします!

forest1040 commented 1 year ago

例です: https://mybinder.org/v2/gh/Qulacs-Osaka/scikit-qulacs/tutorial-in-binder?labpath=doc%2Fsource%2Fnotebooks

からBinderを起動しました。

Jupiter が起動するのですが、実行してもPythonランタイムがBusyのままになります。 後でスクリーンショットを貼り付けます。

forest1040 commented 1 year ago

スクリーンショットです! binder-jupiter

テストデータと比べて結果を出力します。 の箇所に結果がでるのですが、しばらく待っていても表示されないです。。

ikanago commented 1 year ago

僕も今実行してみたら同じ状態になりました. 前に実行したときはうまくいったもののやはり時間がかかったので,単に遅いだけだと思います. とはいえ遅すぎるので使い物にならなさそうではありますね...

そもそもこれをやりだしたのは Google Colab の Python が3.7で,scikit-qulacs がこのバージョンをサポートしていないからで,

ikanago commented 1 year ago

238 で Python 3.7 をサポートできそうなので binder はいらないかもしれないです.