<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>分类：Python - LT技术站</title><link>https://lautung.com/categories/python</link><atom:link href="https://lautung.com/categories/python/feed/categories/python.xml" rel="self" type="application/rss+xml"/><description>纸上得来终觉浅，绝知此事要躬行！</description><generator>Halo v2.27.2</generator><language>zh-cn</language><image><url>https://lautung.com/upload/ChatGPT%20Image%202026%E5%B9%B47%E6%9C%8810%E6%97%A5%2002_45_40(1).webp</url><title>分类：Python - LT技术站</title><link>https://lautung.com/categories/python</link></image><lastBuildDate>Thu, 12 Nov 2026 15:01:07 GMT</lastBuildDate><item><title><![CDATA[Python 数据工具：从探索到交付，Jupyter 分析、Streamlit 展示]]></title><link>https://lautung.com/archives/python-data-tools</link><description><![CDATA[<img src="https://lautung.com/plugins/feed/assets/telemetry.gif?title=Python%20%E6%95%B0%E6%8D%AE%E5%B7%A5%E5%85%B7%EF%BC%9A%E4%BB%8E%E6%8E%A2%E7%B4%A2%E5%88%B0%E4%BA%A4%E4%BB%98%EF%BC%8CJupyter%20%E5%88%86%E6%9E%90%E3%80%81Streamlit%20%E5%B1%95%E7%A4%BA&amp;url=/archives/python-data-tools" width="1" height="1" alt="" style="opacity:0;">Jupyter和Streamlit分别服务于数据工作流的不同阶段：Jupyter用于探索数据、试验特征、教学演示，其核心优势是代码与结果的整合展示，但需注意避免全局依赖冲突、结果不可复现及硬编码敏感信息等坑。推荐为每个项目创建独立conda/venv环境，关键结果必须落盘存储，敏感数据需手动清理或使用nbstripout。长期项目建议采用JupyterLab管理终端和多notebook协同，多人协作时应通过JupyterHub实现身份认证和资源配额控制，禁用开放kernel挂载公网。 Streamlit适用于快速将分析脚本转化为可交互页面，如展示图表、RAG分块试玩或标注工具。需善用@st.cache_data/Resource缓存高频计算和模型连接，通过session_state管理对话历史与上传文件，但若涉及高并发外部产品或权限控制需直接转向FastAPI等服务化方案。避免密钥混入仓库，在部署时建议使用secrets.toml分离敏感信息。分工表中明确划分工具使用场景：探索阶段首选Jupyter，交付阶段选择Streamlit或服务化方案，并强调不混用不同阶段工具链，避免因设计缺陷导致的可维护性下降。]]></description><guid isPermaLink="false">/archives/python-data-tools</guid><dc:creator>LTT</dc:creator><category>Python</category><pubDate>Wed, 16 Sep 2026 06:22:33 GMT</pubDate></item></channel></rss>