首页 > 其他分享 >Jupyter Notebook

Jupyter Notebook

时间:2024-01-14 10:44:45浏览次数:18  
标签:jupyter Shift 单元格 notebook Notebook Jupyter 单元

1、下载安装

  官网地址:https://jupyter.org/install

#激活python环境
activate
conda activate python3.8
pip install ipython pyzmq jinja2 tornado notebook jupyterlab voila scikit-learn

2、启动

# 以默认参数启动
jupyter notebook
# 启动时打开test.ipynb
jupyter notebook test.ipynb
# 启动时指定端口
jupyter notebook --port 12345
# 启动时不打开浏览器
jupyter notebook --no-brower
# 允许任意IP连接
jupyter notebook --ip="*"

3、创建文件夹、文件、Notebook等

4、jupyter基本操作

(1)创建Notebook

(2)Code

  Code Cell(用于编写代码),Markdown Cell(用于书写文本)。

(3)常用快捷方式(按Enter键进入编辑模式)

  a. Ctrl + Enter = 运行当前单元代码

  b. Shift + Enter = 运行当前单元代码并指向下一个单元

  c. Alt + Enter = 运行本单元代码并在下方插入新单元

(4)常用快捷方式(按Esc键进入编辑模式)

  a. Up(Down)= 选中上方或下方单元

  b. Shift + K = 扩大选中上方单元

  c. Shift + J = 扩大选中下方单元

  d. Shift + M = 合并选中的单元

  e. A = 在当前单元格上面创建一个新的单元格

  f. B = 在当前单元格下面创建一个新的单元格

  g. 双击D = 删除本单元格

  h. Z = 撤销已删除的单元格

  i. M = 插入markdown格式文本

标签:jupyter,Shift,单元格,notebook,Notebook,Jupyter,单元
From: https://www.cnblogs.com/qq1035807396/p/17963426

相关文章

  • 使用anaconda创建notebook工程
    1.由于每个工程使用的环境都可能不一样,因此一个好的习惯就是不同的工程都创建属于自己的环境,在anaconda中默认的环境是base://括号中名字,代表当前的环境(base)dragon@machine:$condacreate--name=example2.激活环境//环境从base切换到example(base)dragon@machine:$condaa......
  • SciTech-BigDataAIML-Jupyter- 扩展Jupyter Notebook 的文档 Extending the Notebook
    https://jupyterlab-lsp.readthedocs.io/en/latest/Installation.htmlhttps://github.com/jupyter-lsp/jupyterlab-lspDocs»ExtendingtheNotebook»CustomrequesthandlersEditonGitHubNoteYouarenotreadingthemostrecentversionofthisdocumentation.......
  • Jupyter 安装
    最近想折腾下数据分析,重拾python,遂有了这篇文章,以此开启记录学习过程。一、安装网上有很多安装教程,起初为了图便利是直接通过pip来安装的,mac通过pip安装pip3installjupyter但是在新建python文件时会报500服务器内部错误,服务端日志打印了一个permissiondeny的错误,试了网......
  • Jupyter Notebook 安装使用及快捷键
    ​  参考文档:JupyterNotebook安装使用及快捷键1、安装条件安装JupyterNotebook之前需要已经安装Python(3.3版本及以上,或2.7版本)。如若初学者可以参考下面使用Anaconda安装的方法。2、使用pip安装JupyterNotebook安装JupyterNotebook最简单的方法是使用pip包管理......
  • jupyter
    1、安装:pip3installjupyter2、配置:生成配置文件:jupyter-lab--generate-config查看配置文件路径:jupyter--config-dir查看配置:jupyter-lab--show-config修改相关配置:c.ServerApp.ip='192.168.1.2'#服务器侦听地址c.ServerApp.port=8080#侦听端口,默认8888c.Se......
  • python notebook
    python(11.20--12.7)配置python环境:下载:anaconda在清华大学开源软件镜像站中选择合适的镜像进行下载。anaconda的存在和作用:要使用anaconda不妨先了解anaconda是什么,做什么。首先要知道,anaconda的存在必然有其存在的社会条件,现如今的python拥有众多版本,他们可以满足使用者不......
  • P6入门:项目初始化3-项目详情之记事本Notebook
    前言使用项目详细信息查看和编辑有关所选项目的详细信息,在项目创建完成后,初始化项目是一项非常重要的工作,涉及需要设置的内容包括项目名,ID,责任人,日历,预算,资金,分类码等等,在接下来的博文中,我将结合官方帮助介绍这些基本设置,希望给对P6感兴趣的人带来帮助。涉及P6 项目详情设置包括:G......
  • jupyter notebook代码补全扩展安装遇到 Jupyter command `jupyter-contrib` not found
    Jupytercommandjupyter-contribnotfound.解决方案——新的安装方式。方法1:pip方式1.先使用以下命令,卸载旧版本的jupyter_contrib_nbextensions和upyter_nbextensions_configurator:分别用cmd命令,卸载之前的安装pipuninstalljupyter_contrib_nbextensionspipuninsta......
  • hackthebox jupyter medium
    BREIFLY.thisboxisquitehardforbeginner.thewalkthroughisfollowing:1.nmapscanopenportsdetailanddiscoverthisboxopen22and80portbutonlygivethedomain http://jupiter.htb FUZZTESTING:atthetimewecanFUZZthesubdomainofthisdom......
  • Jupyter Notebook 使用与安装
    简介JupyterNotebook就是以网页的形式打开,可以在网页页面中直接编写代码和运行代码,代码的运行结果也会直接在代码块下显示的程序。如在编程过程中需要编写说明文档,可在同一个页面中直接编写,便于作及时的说明和解释。官网:https://jupyter-notebook.readthedocs.io/en/stable/not......