惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tor Project blog
Cloudbric
Cloudbric
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
N
News | PayPal Newsroom
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Privacy & Cybersecurity Law Blog
Simon Willison's Weblog
Simon Willison's Weblog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 三生石上(FineUI控件)
E
Exploit-DB.com RSS Feed
WordPress大学
WordPress大学
F
Fortinet All Blogs
O
OpenAI News
IT之家
IT之家
Vercel News
Vercel News
G
Google Developers Blog
Spread Privacy
Spread Privacy
T
The Blog of Author Tim Ferriss
T
The Exploit Database - CXSecurity.com
V
V2EX - 技术
I
Intezer
N
News and Events Feed by Topic
W
WeLiveSecurity
宝玉的分享
宝玉的分享
AWS News Blog
AWS News Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
I
InfoQ
The GitHub Blog
The GitHub Blog
C
Check Point Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
LangChain Blog
月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
C
CERT Recently Published Vulnerability Notes
Hugging Face - Blog
Hugging Face - Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Comments on: Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
Cyberwarzone
Cyberwarzone
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - PanPan003

decimal, double在 c#中的区别 xUnit Theory: Working With InlineData, MemberData, ClassData docker network - container networking KEDA — Kubernetes Based Event Driven Auto scaling(转载) rabbit MQ —— ha-sync-mode. message 同步/ 丢失 in new pods rabbit MQ —— ha-mode, message 同步策列:所有nodes or one nodes 博文阅读密码验证 - 博客园 Kubernetes hpa container scale up/ down 原理 in kubernetes 博文阅读密码验证 - 博客园 Windows证书管理器 && SSL certification && WSL-Docker: curl: (60) SSL certificate problem: unable to get local issuer certificate 博文阅读密码验证 - 博客园 httpclient in .net _ 压缩 MongoDB 大文件处理 _ Building MongoDB Applications with Binary Files Using GridFS 博文阅读密码验证 - 博客园 Mock —— .Protected() .Setup XUnit —— Record.Exception —— Stop Using Assert.Throws in Your BDD Unit Tests RabbitMQ _ How to Close a Channel What is .NET MAUI? —— a cross-platform framework for creating native mobile and desktop apps with C# and XAML.
python environment settings
PanPan003 · 2025-11-25 · via 博客园 - PanPan003

Install python

https://www.python.org/

for example:

python-3.14.0-amd64.exe

install

image

List all python installed in local machine

> py -0
-V:3.14 * Python 3.14 (64-bit)
-V:3.13 Python 3.13 (64-bit)
-V:3.12 Python 3.12 (64-bit)
-V:3.11 Python 3.11 (64-bit)

Create virtual enviornement for python project

> python --version
Python 3.9.13

> py -m venv myenv_3_14

> .\myenv_3_14\Scripts\activate
(myenv_3_14) PS D:\

(myenv_3_14) PS D:\> python --version
Python 3.14.0
(myenv_3_14)

> deactivate

 Jupyter Notebook

> py --version
Python 3.14.0

> py -m pip install --upgrade pip

> py -m pip install notebook

> jupyter notebook [I 2025-11-25 20:46:28.199 ServerApp] Extension package jupyter_server_terminals took 0.6866s to import [I 2025-11-25 20:46:28.706 ServerApp] jupyter_lsp | extension was successfully linked. [I 2025-11-25 20:46:28.712 ServerApp] jupyter_server_terminals | extension was successfully linked. [I 2025-11-25 20:46:28.727 ServerApp] jupyterlab | extension was successfully linked. [I 2025-11-25 20:46:28.738 ServerApp] notebook | extension was successfully linked.
...

Or copy and paste one of these URLs: http://localhost:8888/tree?token=a7b0746c1f0cd96588efa4198781436a3d4cf4ff2e7dbdf6 http://127.0.0.1:8888/tree?token=a7b0746c1f0cd96588efa4198781436a3d4cf4ff2e7dbdf6

image

image

1. Jupyter Notebook

  • What it is:
    An interactive web-based environment for writing and running code, especially popular in data science and machine learning.
  • Key Features:
    • Runs in your browser.
    • Supports Markdown for documentation alongside code.
    • Allows inline visualization (charts, plots, images).
    • Supports multiple languages via kernels (Python, R, Julia, etc.).
    • Ideal for exploratory programming, data analysis, and sharing notebooks.
  • Use Case:
    Great for data science, machine learning, prototyping, and teaching.

2. Regular Python Notebook / IDE (e.g., VS Code, PyCharm)

  • What it is:
    A traditional development environment for writing Python scripts (.py files).
  • Key Features:
    • Focused on software development rather than interactive exploration.
    • No built-in Markdown or inline visualization (though IDEs can integrate tools).
    • Better for large projects, debugging, and version control.
  • Use Case:
    Ideal for production code, backend development, and complex applications.

Main Differences

FeatureJupyter NotebookPython IDE / Notebook
Interface Web-based Desktop application
File Type .ipynb .py
Documentation Markdown + Code Comments only
Visualization Inline plots/images Separate windows
Best For Data analysis, ML Full-scale development

 User VS code Edit .ipynb code

add file test.ipynb

image

image

ipykernel is a key component of the Jupyter ecosystem. Here’s what it is and why it matters:


What is ipykernel?

  • Definition:
    ipykernel is the Python kernel for Jupyter. A kernel is the computational engine that executes the code contained in your Jupyter Notebook cells.
  • It allows Jupyter Notebook (or JupyterLab) to run Python code and communicate with the notebook interface.

How it works

  • When you start a Jupyter Notebook, it launches a kernel in the background.
  • The kernel:
    • Executes Python code.
    • Sends results back to the notebook interface.
    • Handles variables, imports, and state during your session.

Why do you need it?

    • Without ipykernel, Jupyter cannot run Python code.
    • It’s installed automatically with Jupyter, but if you want to add Python to Jupyter from a virtual environment, you need to install ipykernel in that environment.

PS,

VS code extention used

image