ftnext / bring-script-more-users Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://ftnext.github.io/bring-script-more-users/resize_webapp.html
License: MIT License
Home Page: https://ftnext.github.io/bring-script-more-users/resize_webapp.html
License: MIT License
静的ファイル周り→縮小した画像は問題なく表示されている
resize_image
にTrue/Falseを返させる2020年のWorkshopで報告されたエラーはbringscriptのsetup.pyの不備ではないかと考えた
macOSやmacOSで動かしたdockerイメージでは含まれた
package_data
を指定していた!
結論:setup.pyの不備ではなさそう
関数名をapp_nameにしたい
main.pyが設定を知りすぎている状況をカイゼンする
2020/12 stapy宿題
Q. Eelを使った時に、HTMLからclassを読み出すことも可能ですか?
意味が複数取れるが、HTMLのclassを扱いたいという質問として解釈した場合の回答をここにまとめる
動くからという理由で文字列リテラルにしている。
裏付けを取りたい
invite requestを送った
https://www.streamlit.io/sharing
まずこのIssueで設計を考える。
細分化した単位でProjectにカードを追加したらこのIssueはclose
argparse, eel, flask それぞれのアプリに必要なファイルを作れるヘルパーコマンドを実装したパッケージを用意したい
(workshopをスムーズに進められると考えている)
以下のサブコマンドを用意する
Sub command | Description |
---|---|
bringscript cli <app_name> |
<app_name> ディレクトリの下にcli.pyを作る(argparseのボイラープレート) |
bringscript gui <app_name> |
<app_name> ディレクトリの下にgui.py, web/<app_name>.html を作る |
bringscript web <app_name> |
<app_name> ディレクトリの下にweb.py templates/<app_name>.html を作る |
どう実装するか?
2020/12 stapy宿題
Q. Eelを使った時に、HTMLからclassを読み出すことも可能ですか?
意味が複数取れるが、Pythonのクラスを扱いたいという質問として解釈した場合の回答をここにまとめる
以下を順に作る
フォルダを選ぶ→複数のファイルを選ぶに読み替えて実装
以下の2つを作る想定
登壇が終わったらこのissueはclose
argparseでヘルプメッセージを指定する想定。
help引数で〇〇を指定してくださいと出す
https://docs.python.org/ja/3/library/argparse.html#help
サンプルコードを参考に、ボタンを押したら画面にhello worldと出るようにする
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.