投稿

1月, 2026の投稿を表示しています

Data Persistence in Streamlit Cloud

イメージ
 Previous BLOG:  https://shikuuk.blogspot.com/2026/01/combination-streamlit-and-folium-in-vs.html  I made a Web App that work on Streamlit Cloud. The App draw three concentric circles with the point specified by mouse click as the center and show the name and the address of the center using Python library 'geopy'. https://2025-draw-circle-on-folium-map.streamlit.app/  Actually, I would like to implement data persistence functionality in a different type of app, but first I will try implementing data persistence in this concentric circle drawing app as practice.  I ask Gemini How implement data persistence functionality. Gemini has three answer. To use a Google Spraed Sheet(Gemini is recommended it strongly) Streamlit Community Cloud "Secrets" + outside data base Automatically Commit to GitHub(Gemini is not recommended this one) (参考) 1. Google Sheets (Googleスプレッドシート) を使う方法【最も推奨】 スプレッドシートを無料のデータベースとして使う方法です。Streamlitには専用のコネクタ( st.connection )があり、非常に相性が良いです。 仕組み : アプリから...

RUNNING and CLIMBING, SIGHTSEEING 2026

イメージ
24th Jan 2026 Since the strongest cold wave in this season come, It's very cold today and wind is very strong. But I tried to run along coast side of Takamatsu City. I run nearby Anabuki Arena, wellknown Red Lighthouse, and coast side path. 18th Jan 2026  I create the App which draw three concentric circles at an opptional point(longitude and latitude) on the Japan Geospacial Institute's map. You can setting up the center of circles by clicking apoint on the map or inputing a coordinates(longitude and latitude) and the radiuses values of the each circle on the App. If you are interested in this App, you can use it at the below URL. https://2025-draw-circle-on-folium-map.streamlit.app/

Gourmet from January 2026 to

イメージ
A day of Jun. 香川県綾川町にある古民家CAFE山清さんでらんちぷれーと。山清さんはあんこなどの食品製造でWell knownなfirmさんです。 店内は古民家にAntiqueなインテリアで落ち着いた雰囲気です。 STAFFさんのいろいろな説明をお聞きして、身体にいいものをcomceptに、素材にも、調味料にも、そして、水にもこだわってお料理しているという熱意を感じました。 本当に身体によいと思える優しいお味を堪能しました。食後の飲み物もとても身体によさそうなラインナップで、身体の中から癒された感じです。 All the dishes were elaborate and excellent, but the bonus dish, the monaka, was super elegant. 山清さんの身体によさそうな商品も紹介いただいたので、機会があれば挑戦します! 7th Jan. 2026 香川県三木町のイドモールにあるラーメンかしわさんでラーメンらんち。TOMATO担々麺っぽい、美味しそうなラーメンもありましたが、ここは王道ということで全部のせ親鳥中華そばをOrder。優しい鳥スープですが、スープのうえにある透明の脂でほどよいコクが感じられて、ちょうどよいバランスです。再訪問すると思います。

マレーシア漫遊記 ①マラッカツアー

イメージ
2025年末、マレーシア語学研修旅行へ。約15年ぶりの海外旅行です。 12月27日に成田からクアラルンプールインターナショナルエアポートKLIAへJALでフライト、同日夕刻に到着して、クアラルンプールのホテルへGRABにて移動。その日は日本から持参したカップヌードルを食べて、就寝し、移動の疲れをホテルにて癒しました。 GRABはスマホで予約ができる、予約したクルマがどこにいてあとどれくらいで待ち合わせ場所に到着する、料金は予約した時点で確定していてるなどなど、今回の旅行を通じてとっても便利でした。日本にも展開して欲しいです。 12月28日は出発のずっと前の時点で予約しておいたホテルアレンジのマラッカのプライベートツアーです。今回のMalaysia漫遊は語学研修を兼ねているので、英語のガイドさんをお願いしました(日本語は話せません)  9時にクアラルンプールを出発、途中、高速道路で事故渋滞をやり過ごして、2時間超でマラッカへ。マレーシアは汽車・電車などの公共交通機関よりも個人所有のクルマ社会みたいで、高速道路もクルマで溢れていました。特に、マラッカからクアラルンプールへの帰路は大大大自然渋滞に巻き込まれました。ガイドさんによれば、この日は日曜日で週末にシンガポールに遊びに行った人たちがマレーシアに戻ってくるのと、逆に、マレーシアに遊びに来たシンガポールの人たちがシンガポールに戻るので、上り車線も下り車線も混雑するそうです。確かに、クアラルンプール行きもシンガポール行きもめちゃくちゃ渋滞してました。  社内では英会話を実地訓練で、ガイドさん(兼ドライバーさん)とマレーシアのあいさつや、自動車メーカー、土地&お家事情、マレーシアの語学教育などなど様々なことをおしゃべりしました。  クアラルンプールから約2時間、待望の目的地のマラッカに到着です。  まず最初は、マラッカで最も古い現役の教会「聖ペトロ教会(St. Peter's Church)」を訪ねました。白を基調にした外壁がとても印象的な美しい教会です。日曜日のこの日はミサが行われているため、教会内部には入ることはできず、入口から内部の様子を窺いました。教会内にはカトリック信者がたくさんホミリアを聞いていました。ホミリアはスピーカーを通じて教会の外でも聞くことができますが、残念ながら内容を理解することはできません...

Combination Streamlit and Folium in VS-code

イメージ
  I try to create the code using Streamlit and Folium(Steamlit_Folium) and to learn about publicizing the code on the WEB site of the Streamlit.  I think what kind of Application I will make. I decided to make a code like below. input the latitude and longitude at a point and a radius in our side bar Draw the circle that has an inputed coordinate and the center   I ask Gemini like below, in Japanese. Streamlitを使って、入力した緯度・経度の点とその点を中心とする半径から、Foliumの地図上に当該緯度経度の点をドットで表示したうえで、当該点を中心とする半径の円を描くPythonコードを書いてください。なお、緯度経度と半径の入力はサイドバーを使用したいです。 StreamlitとFoliumを組み合わせることで、サイドバーからインタラクティブに数値を変更し、地図上に反映させるアプリケーションを簡単に作成できます。 以下のコードは、 streamlit-folium というライブラリを使用して、Streamlit上にFoliumの地図を表示する実装例です。 実装コード Python import streamlit as st import folium from streamlit_folium import st_folium # ページの設定 st.set_page_config(page_title= "Map Circle Tool" , layout= "wide" ) st.title( "📍 緯度経度を中心とした円の描画" ) # --- サイドバーの設定 --- st.sidebar.header( "入力パラメータ" ) # 緯度の入力(デフ...