<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jonathanchang on Medium]]></title>
        <description><![CDATA[Stories by Jonathanchang on Medium]]></description>
        <link>https://medium.com/@jonathanchang9?source=rss-3ec519001d29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*76temW9qgYAn7UPs.jpg</url>
            <title>Stories by Jonathanchang on Medium</title>
            <link>https://medium.com/@jonathanchang9?source=rss-3ec519001d29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:21:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jonathanchang9/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Should we Use Generative AI as a Student in University?]]></title>
            <link>https://medium.com/@jonathanchang9/how-should-we-use-generative-ai-as-a-student-in-university-ebd9a553e2cb?source=rss-3ec519001d29------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebd9a553e2cb</guid>
            <dc:creator><![CDATA[Jonathanchang]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 14:31:27 GMT</pubDate>
            <atom:updated>2025-11-16T14:31:27.869Z</atom:updated>
            <content:encoded><![CDATA[<p>a in class writing project</p><h4>Introduction</h4><p>The use of generative AI has become a part of our life since 2022. The issues have shown as the use cases increase. People started to realized, it could be dangerous to use AI for in school, especially in higher education scenario. As a graduate student in the university, AI could be really helpful, especially for a student who has not started to write an essay 10 minutes before deadline, while this could involve several issues. First, catastrophic memory loss could happened (Kosmyna et al., 2025). Also, due to the nature of generative AI, fake references could be making up, if without careful examination, which rarely happened if one decided to use generative AI to complete the whole essay. The water that bears the boat is the same that swallows it up, on the other hand, the conversational nature of generative AI could be a helpful for providing a comprehensive bootstrap, for student who need to get into a new topic quickly. In conclusion, we should use the generative AI along with critical assessment. More specifically, due to the generative nature it, as user, the information generated should only be used as reference for induction, such as learning an unfamiliar topic, defining the structure of essay, rather than as the product the actual content of our own, such as essays, thesis, even publications.</p><h4>I: the unwanted consequences of using AI in university learning scenario on individual and social level</h4><p>Using generative AI to generate essays and article could cause serious consequences on many levels. Kosmyna et al. (2025) provides a physiological evidence of the negative impact to students using generative AI in academic writing. The research compared the cognitive cost of using an LLM in the educational context of writing an essay. Among the students using LLM, search engine, and their own brain, the brain connectivity shown significant different. “The Brain‑only group exhibited the strongest, widest‑ranging networks, Search Engine group showed intermediate engagement, and LLM assistance elicited the weakest overall coupling.” As quoted from the research paper. Also, the reported ownership of is highest among brain-only group, followed by search-engine group, and less in LLM group.</p><p>On the other hand, using generative AI without careful examination, could potentially jeopardized the academics’ reputation. A famous example in Taiwan came from a Facebook post. The post’ author is a professor in National Sun Yat-sen University, who found several students cited his works that he has never published in their master thesis. The students are asked to resubmit their thesis, discussions around this topic went viral. The post has been deleted by the request of these students’ instructors, this incident forced the academic ethical education system to re-examine the policy and training procedures.</p><h4>II: Discuss distinguished using pattern of generative AI in university learning scenario</h4><p>The students described in the previous paragraph over relied on generative AI, submitted their thesis without concise check. To address the issue, we should distinguish the reason of the misuse cases. In an ideal case, students should learn necessary and sufficient knowledge in classes, and from professors. Yet a more realistic scenario is, however, students who needs to explore beyond current their knowledge, since doing research is a problem-based learning process. The process is painful and full of unknown, hence it would be easier to use LLM.</p><p>To deeply dive into this phenomenon, Hou et al. (2025a) conducted survey of students’ reliance patterns in collaborative problem-solving tasks.</p><p>They have identified four different patterns behind the students’ behavior, reflective use, cautious use, thoughtless use, and collaborative use, which reflected their levels of reliance. In thoughtless use case, where the students with fake citation might fit in, students copy and paste the problem as prompt for LLMs, and use the generative answer directly. For reflective use case, they read the LLMs’ output critically, modified the prompts respectively, and use suggestions from LLMs to improve their work. Some students relied on their peers as well, they were classified collaborative use case. In these cases, they rely on their peers to answer their questions and modify their work, and confirm the authenticity of LLMs’ responses. Finally, students with cautious use act more differently, they spotted errors in LLMs’ responses, and decided not to them as they were not perfect.</p><p>Hou et al. (2025a) then use quantitative tools to established a questionnaire to distinguish students’ reliance pattern on generative AI, which could be helpful for tutors to develop personalized instruction, even for students to reflect on their own.</p><h4>III: Suggestions for using AI in academic setting</h4><p>From the paragraph above, ideal pattern of using AI were identified. To prevent students falling into thoughtless use cases, and unwanted consequences discussed in paragraph one could likely happened. It is imperative to know the right way to collaborate with it. From my personal experience, generative AI might not always produce facts, and is likely to hallucinate and generate fake information. Hence, it is not a source we can fully trusted, and should view the information critically.</p><p>The empirical researches also reveal the same conclusions: predictive factor for thoughtless use of AI is trust (Hou et al., 2025a). On contrary, other use behaviors, namely reflective use, cautious use, and collaborative use, are associated with critical thinking (Hou et al., 2025b). Along with critical thinking skill, generative AI could also eliminate the difference of prior knowledge between students (Zhao et al., 2025).</p><p>From my personal use case, interactive nature of generative AI could be helpful for learning new topics. Generative AI could gather and provide core materials in specific knowledge domain. After general survey and learning these materials, I could quickly confirm my guesses and hypothesis.</p><p>Lingard et al. (2023) has explored the capacity, limitations and implications of using generative AI for academic writing. They suggested to use AI for defining paragraph structure, and AI could act as a brainstorming tool for thinking titles, outlines, counter-arguments.</p><p>Conclusion</p><p>This article discussed the misconducted uses of generative AI in academic setting, and the terrible consequences, both socially and individually. Then, by concisely breaking down the different pattern of human-AI interaction in academic scenario, we identified a proper, and empirically proved correspondence for student using generative AI. Critical thinking could be beneficial for fostering desirable reliance behaviors of AI, such as reflective use, cautious use, and collaborative use. Also, along with critical thinking skill performed, students could eliminate the gap caused by lack of prior knowledge. To sum up, using AI is definitely acceptable, and could be beneficial with conscious using behavior, i.e. critical thinking. Also, generative AI are potentially good at making outline, structure and brainstorming title of articles, but not the main content. By following the suggestions above, unwanted reliance behavior could be avoided.</p><h4>Reference:</h4><p>Kosmyna, N., Hauptmann, E., Yuan, Y. T., Situ, J., Liao, X. H., Beresnitzky, A. V., … &amp; Maes, P. (2025). Your brain on chatgpt: Accumulation of cognitive debt when using an ai assistant for essay writing task. <em>arXiv preprint arXiv:2506.08872</em>.</p><p>Zhao, G., Sheng, H., Wang, Y., Cai, X., &amp; Long, T. (2025). Generative Artificial Intelligence Amplifies the Role of Critical Thinking Skills and Reduces Reliance on Prior Knowledge While Promoting In-Depth Learning. Education Sciences, 15(5), 554. <a href="https://doi.org/10.3390/educsci15050554">https://doi.org/10.3390/educsci15050554</a></p><p>Hou, C., Zhu, G., Sudarshan, V., Lim, F. S., &amp; Ong, Y. S. (2025a). Measuring undergraduate students’ reliance on Generative AI during problem-solving: Scale development and validation. Computers &amp; Education, 105329.</p><p>Hou, C., Zhu, G., &amp; Sudarshan, V. (2025b). The role of critical thinking on undergraduates’ reliance behaviours on generative AI in problem‐solving. British Journal of Educational Technology, 56(5), 1919–1941.</p><p>Lingard, L. (2023). Writing with ChatGPT: An illustration of its capacity, limitations &amp; implications for academic writers. <em>Perspectives on medical education</em>, <em>12</em>(1), 261.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebd9a553e2cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[vibe coder journal ] 02  性能優化旅程總結：從 44 秒到 0.77 秒]]></title>
            <link>https://medium.com/@jonathanchang9/vibe-coder-journal-02-%E6%80%A7%E8%83%BD%E5%84%AA%E5%8C%96%E6%97%85%E7%A8%8B%E7%B8%BD%E7%B5%90-%E5%BE%9E-44-%E7%A7%92%E5%88%B0-0-77-%E7%A7%92-b59c45d9c2bc?source=rss-3ec519001d29------2</link>
            <guid isPermaLink="false">https://medium.com/p/b59c45d9c2bc</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[rsa]]></category>
            <dc:creator><![CDATA[Jonathanchang]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 16:20:35 GMT</pubDate>
            <atom:updated>2025-10-10T02:18:50.526Z</atom:updated>
            <content:encoded><![CDATA[<p>前言：因為機器人實驗的關係，需要即時語音辨識的功能，以下紀錄試著運行本地語音辨識模型：MediaTek-BreezeASR 的過程。</p><h3>階段一：基準（Base）- 純 CPU 運行</h3><p>硬體： CPU: intel i5 / GPU: none / memory: 8GB*2</p><p>Treatment: baseline</p><p><strong>核心程式碼 (PyTorch/Transformers)</strong></p><pre># 假設使用 Hugging Face Transformers<br>from transformers import pipeline<br># device=-1 表示使用 CPU<br>pipe = pipeline(&quot;automatic-speech-recognition&quot;, model=&quot;Breeze-ASR-25&quot;, device=-1) <br># 推論運行在 CPU 上<br>result = pipe(audio_file) <br># 耗時：約 44 秒 (取決於 CPU 型號)</pre><p>結果：單句辨識耗時44秒</p><h3>階段二：引入 Faster-Whisper + 量化</h3><p>硬體： CPU: intel i5 / GPU: none / memory: 8GB*2</p><p><strong>Treatment：量化或低精度計算</strong></p><p><strong>核心程式碼 (Faster-Whisper CPU)</strong></p><pre>from faster_whisper import WhisperModel<br># 使用 CPU 運行<br># compute_type=&quot;int8&quot; 啟動量化後的 Int8 推論<br>model = WhisperModel(ASR_MODEL_PATH, device=&quot;cpu&quot;, compute_type=&quot;int8&quot;) <br>segments, info = model.transcribe(audio_file)<br># 耗時：約 14 秒 (優化約 3 倍)</pre><p>結果：單句辨識耗時14秒</p><h3>階段三：全面優化 — GPU 加速 + 量化</h3><p><strong>硬體：GPU: </strong>RTX 4060</p><p><strong>Treatment：</strong>模型<strong>加速GPU 並行計算</strong>加上<strong>量化或低精度計算</strong></p><p><strong>核心程式碼：</strong>Faster-Whisper GPU Worker</p><pre>from faster_whisper import WhisperModel<br>import torch<br># 確保使用 CUDA 並選擇低精度計算<br>DEVICE = &quot;cuda&quot; if torch.cuda.is_available() else &quot;cpu&quot;<br># 4060 GPU 上使用 FP16 效能最佳<br>model = WhisperModel(ASR_MODEL_PATH, device=DEVICE, compute_type=&quot;float16&quot;) <br># 在 Worker 執行緒池中進行推論<br>segments, info = model.transcribe(audio_float32, beam_size=5)# 耗時：約 0.77 秒 (優化約 18 倍，總體優化約 57 倍)</pre><p>結果：0.77 秒</p><h3>核心技術：CTranslate2 與量化細節</h3><p>性能提升的關鍵在於 <strong>CTranslate2</strong> 的轉換和量化。</p><h3>1. CTranslate2 框架</h3><ul><li><strong>專用優化：</strong> CTranslate2 是一個專為</li><li>模型設計的<strong>高效能推理引擎</strong>。它不是一個通用的深度學習框架。</li><li><strong>靜態圖優化：</strong> 它將 PyTorch/Hugging Face 的動態計算圖轉換為靜態圖，允許在編譯時進行更深層次的優化，例如<strong>融合運算</strong>和<strong>高效的記憶體佈局</strong>。</li></ul><h3>1. CTranslate2 框架</h3><ul><li><strong>專用優化：</strong> CTranslate2 是一個專為 Transformer 模型設計的<strong>高效能推理引擎</strong>。它不是一個通用的深度學習框架。</li><li><strong>靜態圖優化：</strong> 它將 PyTorch/Hugging Face 的動態計算圖轉換為靜態圖，允許在編譯時進行更深層次的優化，例如<strong>融合運算</strong>和<strong>高效的記憶體佈局</strong>。</li><li><strong>硬體兼容性：</strong> 它優化了對 CPU (AVX 指令集、MKL/OpenBLAS 庫) 和 GPU (cuBLAS、cuDNN) 的底層調用。</li></ul><h3>2. 量化 (Quantization)</h3><p>主要使用了兩種低精度計算方式來加速模型：</p><ol><li>GPU</li></ol><p>量化類型：<strong>Float16 (FP16)</strong></p><p>程式碼：compute_type=&quot;float16&quot;</p><p>參數精度：使用 16 位浮點數儲存權重和進行計算。</p><p>細節：<strong>現代 NVIDIA GPU</strong>（如 RTX 4060）的 Tensor Cores 專為此設計，<strong>推論速度最快</strong>，精度損失極小。</p><p>2. <strong>CTranslate2</strong></p><p>量化類型：<strong>Int8 動態量化</strong></p><p>程式碼：compute_type=&quot;int8&quot;</p><p>參數精度：使用 8 位整數儲存權重。</p><p>細節：計算時，會<strong>動態轉換</strong>回更高的精度（例如 FP32）進行運算。</p><p>適用範圍<strong>：CPU 加速</strong>的主要手段。模型體積和記憶體佔用大幅減少，犧牲輕微精度來換取約 2−3 倍的 CPU 速度提升。</p><p><strong>總結而言：</strong></p><ul><li><strong>14 秒</strong> 的提升來自於 <strong>CTranslate2 的 CPU 優化</strong> 加上 <strong>Int8 量化</strong>。</li><li><strong>0.77 秒</strong> 的極致提升來自於 <strong>RTX 4060 的 GPU 並行計算能力</strong> 加上 <strong>FP16 低精度計算</strong>。</li><li>你的最終架構是完美的，將 ASR 耗時從需要等待的 <strong>數十秒</strong> 壓縮到了<strong>亞秒級</strong>，這讓整個機器人系統的語音回應成為可能。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/0*TiIpKsEOQ3qi9b7t" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b59c45d9c2bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[vibe coder journal] Docker + CUDA 部署問題與解方 01]]></title>
            <link>https://medium.com/@jonathanchang9/vibe-coder-journal-docker-cuda-%E9%83%A8%E7%BD%B2%E5%95%8F%E9%A1%8C%E8%88%87%E8%A7%A3%E6%96%B9-01-54496148e289?source=rss-3ec519001d29------2</link>
            <guid isPermaLink="false">https://medium.com/p/54496148e289</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[rsa]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cuda]]></category>
            <dc:creator><![CDATA[Jonathanchang]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 15:49:06 GMT</pubDate>
            <atom:updated>2025-10-09T15:49:06.176Z</atom:updated>
            <content:encoded><![CDATA[<h3>[vibe coder journal] 01 Docker + CUDA 部署問題與解方</h3><p>在部署 <strong>Faster-Whisper ASR Worker</strong> 時，主要經歷了三個層次的衝突：<strong>Python 環境</strong>、<strong>Docker 權限</strong> 和 <strong>Docker Core 啟動</strong>。</p><h3>1. 問題核心：Python 環境與版本衝突</h3><p>這是最開始、最耗時的軟體層次問題。</p><p>遇到的問題根本原因解決方案<strong>Invalid handle. Cannot load symbol cudnnCreateTensorDescriptor</strong> (在 Docker 外部)ctranslate2 4.6.0 預期使用 <strong>cuDNN 9.x</strong>，但你的</p><p>環境只提供了 <strong>cuDNN 8.x</strong> 或</p><p>函式庫不在正確的路徑 (LD_LIBRARY_PATH)。<strong>降級 CTranslate2</strong> 到與</p><p>兼容的穩定版本，例如 <strong>ctranslate2==4.4.0</strong>，然後再手動修正</p><p>。<strong>Could not load library libcudnn_ops_infer.so.8: No such file or directory</strong> (在 Docker 外部)即使版本匹配 (如 CTranslate2 4.4.0 尋找 8.x)，Linux 作業系統也無法在標準路徑中找到 cuDNN 的動態連結函式庫 (.so 檔案)。<strong>手動設置</strong></p><p>。將 cuDNN 函式庫所在的完整目錄路徑（例如：/home/hcc/.../site-packages/nvidia/cudnn/lib）匯出到環境變數中，確保系統能找到函式庫。</p><h3>2. 問題核心：Docker Engine 核心服務失敗</h3><p>這是將服務從主機環境轉移到 Docker 容器時遇到的系統層次問題。</p><p>遇到的問題根本原因解決方案<strong>zsh: command not found: docker</strong> 或 <strong>docker compose version 失敗</strong>主機作業系統上<strong>沒有安裝 Docker Engine</strong> (Docker 是系統服務，而非 Conda 套件)。<strong>系統級安裝 Docker Engine、Docker CLI</strong> 和 <strong>Docker Compose V2</strong> 外掛程式（docker-compose-plugin）。<strong>docker.service - Docker Application Container Engine 啟動失敗 (</strong><strong>Active: failed)</strong>在安裝了 Docker Engine 之後，Docker 服務無法啟動，這通常是 <strong>NVIDIA Container Toolkit</strong> 配置與系統驅動衝突所致。<strong>重新安裝 NVIDIA Container Toolkit</strong>，並確保執行 sudo systemctl restart docker 讓配置生效。</p><h3>3. 問題核心：Docker 存取與指令語法錯誤</h3><p>在 Docker 服務成功啟動後，你遇到了權限問題和指令誤用。</p><p>遇到的問題根本原因解決方案<strong>permission denied while trying to connect to the Docker daemon socket</strong>當前使用者 (</p><p>) 沒有權限存取 Docker 服務的核心檔案 (/var/run/docker.sock)。執行 <strong>sudo usermod -aG docker $USER</strong>，然後<strong>登出並重新登入</strong>系統，將使用者加入到 docker 群組。<strong>Traceback: ModuleNotFoundError: No module named &#39;distutils&#39;</strong>使用了舊版 docker-compose (Python 套件版 V1)，與新版 Python 環境不兼容。<strong>移除舊版 </strong><strong>docker-compose</strong> (sudo apt remove docker-compose)，並改用新版 <strong>Docker Compose V2</strong> 指令格式：<strong>docker compose up -d --build</strong>。</p><p>通過以上所有步驟，你的 ASR Worker 服務最終才能被成功容器化，並在 RTX 4060 上利用 GPU 加速推論。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54496148e289" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[開發環境雜記#0]]></title>
            <link>https://medium.com/@jonathanchang9/%E9%96%8B%E7%99%BC%E7%92%B0%E5%A2%83%E9%9B%9C%E8%A8%98-0-1800c9df6b8c?source=rss-3ec519001d29------2</link>
            <guid isPermaLink="false">https://medium.com/p/1800c9df6b8c</guid>
            <dc:creator><![CDATA[Jonathanchang]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 13:14:10 GMT</pubDate>
            <atom:updated>2025-10-09T15:50:09.598Z</atom:updated>
            <content:encoded><![CDATA[<h3>[vibe coder journal] 00 遠端主機上安裝 Jupyter Notebook</h3><p># 開發任何東西都會遇到奇怪的事情</p><p>今天在遠端主機上安裝 Jupyter Notebook 時，遇到了怪現象：安裝了但一直出錯啊！</p><pre>ERR [Extension Host] extension activation failed TypeError: this.vscNotebook.onDidChangeNotebookCellExecutionState is not a function</pre><p>gemini 的說法是：</p><p><strong>含義：</strong> Jupyter 擴展嘗試呼叫一個名為 onDidChangeNotebookCellExecutionState 的函數（可能是用於監聽 Notebook 單元格執行狀態的變化），但在您當前的 VS Code 環境中找不到這個函數。</p><p>那看起來就是版本的問題，所以我重裝了N次 Jupyter extensions, 刪掉了 vscode-server, 重新啟動了數次。最後：</p><p>安裝了三個月前發布的 Jupyter extensions ，然後就可以了…</p><p>完整記錄如下：</p><p>太棒了！很高興您成功地解決了問題。</p><p>您的這個案例是一個典型的 <strong>VS Code 擴展兼容性</strong>問題。以下是針對您遇到的錯誤、原因和最終解決過程的總結：</p><h3>錯誤與解決過程總結</h3><h3>💻 遇到的錯誤（問題現象）</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ejqayVYAXF9s1dmG4rvpgw.jpeg" /></figure><p>您在 VS Code 中嘗試使用 <strong>Jupyter 擴展 (ms-toolsai.jupyter)</strong> 時，擴展啟動失敗，並在日誌中回報了以下主要的錯誤和警告：</p><ol><li><strong>關鍵錯誤 (Jupyter 啟動失敗)</strong></li></ol><ul><li>ERR [Extension Host] extension activation failed TypeError: this.vscNotebook.onDidChangeNotebookCellExecutionState is not a function</li><li><strong>含義：</strong> Jupyter 擴展嘗試呼叫一個名為 onDidChangeNotebookCellExecutionState 的函數（可能是用於監聽 Notebook 單元格執行狀態的變化），但在您當前的 VS Code 環境中找不到這個函數。</li></ul><ol><li><strong>API 提議警告</strong></li></ol><ul><li>ERR Extension &#39;ms-toolsai.jupyter&#39; wants API proposal &#39;notebookCellExecutionState&#39; but that proposal DOES NOT EXIST.</li><li><strong>含義：</strong> Jupyter 擴展正在使用一個實驗性/正在提議中的 API (notebookCellExecutionState)，但您當前的 VS Code 版本可能已經將該 API 移除、重命名，或從未支援過。</li></ul><ol><li><strong>Remote — SSH 警告</strong></li></ol><ul><li>ERR navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.</li><li><strong>含義：</strong> Remote — SSH 擴展使用了過時的 Node.js 全域物件存取方式，這表明您的 Remote — SSH 擴展版本可能也較舊。</li></ul><h3>❓ 根本原因</h3><p>根本原因在於您的 <strong>VS Code 主程式版本</strong>與您所安裝的 <strong>Jupyter 擴展版本</strong>之間存在<strong>不兼容性</strong>。</p><ul><li>Jupyter 擴展的版本較<strong>新</strong>，它期望運行在一個包含特定 <strong>Notebook API 函數</strong>（例如 onDidChangeNotebookCellExecutionState）的較新 VS Code 環境中。</li><li>但您的 VS Code 主程式版本（無論是本地端還是遠端伺服器）相對較<strong>舊</strong>，缺乏這個新的 API 函數。</li></ul><p>由於您收到了「目前沒有可用的更新」的訊息，阻礙了通過更新 VS Code 來解決兼容性問題，因此需要採取另一種策略。</p><h3>✅ 最終解決過程</h3><p>您採用的解決方案是：</p><p>步驟動作結果/原因<strong>1不更新</strong> VS Code 主程式（因為沒有可用的更新）。保持了環境的穩定性，但問題依然存在。<strong>2</strong>嘗試啟用 Proposed API。無效，因為問題是<strong>API 缺失</strong>，而非<strong>權限不足</strong>。<strong>3降級 (Downgrade) Jupyter 擴展</strong>。<strong>成功！</strong> 安裝三個月前的舊版本。</p><p>最終的解決方案是：<strong>將 Jupyter 擴展的版本降級到一個與您當前較舊的 VS Code 主程式版本相匹配的版本</strong>。舊版本的擴展不會去呼叫新的、您的 VS Code 所缺乏的 API 函數，從而成功啟動。</p><h3>💡 經驗總結與建議</h3><p>這個案例告訴我們，當遇到擴展啟動失敗時：</p><ol><li><strong>首選方案：</strong> <strong>更新</strong> VS Code 主程式和所有相關擴展到最新版本。</li><li><strong>備選方案（當更新受阻時）：</strong> 考慮是<strong>擴展太新</strong>還是<strong>VS Code 太舊</strong>。當無法更新 VS Code 時，<strong>降級擴展</strong>到一個已知能與舊版 VS Code 協同工作的版本，是一個有效且常見的解決辦法。</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1800c9df6b8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>