日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

jupyter notebook即原来的Ipython notebook的使用方法

發布時間:2025/3/15 python 11 豆豆
生活随笔 收集整理的這篇文章主要介紹了 jupyter notebook即原来的Ipython notebook的使用方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

jupyter 的快捷鍵

?IPython -- An enhanced Interactive Python - Quick Reference Card ================================================================obj?, obj?? : Get help, or more help for object (also works as?obj, ??obj). ?foo.*abc* : List names in 'foo' containing 'abc' in them. %magic : Information about IPython's 'magic' % functions.Magic functions are prefixed by % or %%, and typically take their arguments without parentheses, quotes or even commas for convenience. Line magics take a single % and cell magics are prefixed with two %%.Example magic function calls:%alias d ls -F : 'd' is now an alias for 'ls -F' alias d ls -F : Works if 'alias' not a python name alist = %alias : Get list of aliases to 'alist' cd /usr/share : Obvious. cd -<tab> to choose from visited dirs. %cd?? : See help AND source for magic %cd %timeit x=10 : time the 'x=10' statement with high precision. %%timeit x=2**100 x**100 : time 'x**100' with a setup of 'x=2**100'; setup code is notcounted. This is an example of a cell magic.System commands:!cp a.txt b/ : System command escape, calls os.system() cp a.txt b/ : after %rehashx, most system commands work without ! cp ${f}.txt $bar : Variable expansion in magics and system commands files = !ls /usr : Capture sytem command output files.s, files.l, files.n: "a b c", ['a','b','c'], 'a\nb\nc'History:_i, _ii, _iii : Previous, next previous, next next previous input _i4, _ih[2:5] : Input history line 4, lines 2-4 exec _i81 : Execute input history line #81 again %rep 81 : Edit input history line #81 _, __, ___ : previous, next previous, next next previous output _dh : Directory history _oh : Output history %hist : Command history of current session. %hist -g foo : Search command history of (almost) all sessions for 'foo'. %hist -g : Command history of (almost) all sessions. %hist 1/2-8 : Command history containing lines 2-8 of session 1. %hist 1/ ~2/ : Command history of session 1 and 2 sessions before current. %hist ~8/1-~6/5 : Command history from line 1 of 8 sessions ago toline 5 of 6 sessions ago. %edit 0/ : Open editor to execute code with history of current session.Autocall:f 1,2 : f(1,2) # Off by default, enable with %autocall magic. /f 1,2 : f(1,2) (forced autoparen) ,f 1 2 : f("1","2") ;f 1 2 : f("1 2")Remember: TAB completion works in many contexts, not just file names or python names.The following magic functions are currently available:%alias:Define an alias for a system command. %alias_magic::: %autocall:Make functions callable without having to type parentheses. %automagic:Make magic functions callable without having to type the initial %. %autosave:Set the autosave interval in the notebook (in seconds). %bookmark:Manage IPython's bookmark system. %cat:Alias for `!cat` %cd:Change the current working directory. %clear:Clear the terminal. %colors:Switch color scheme for prompts, info system and exception handlers. %config:configure IPython %connect_info:Print information for connecting other clients to this kernel %cp:Alias for `!cp` %debug::: %dhist:Print your history of visited directories. %dirs:Return the current directory stack. %doctest_mode:Toggle doctest mode on and off. %ed:Alias for `%edit`. %edit:Bring up an editor and execute the resulting code. %env:Get, set, or list environment variables. %gui:Enable or disable IPython GUI event loop integration. %hist:Alias for `%history`. %history::: %killbgscripts:Kill all BG processes started by %%script and its family. %ldir:Alias for `!ls -F -o --color %l | grep /$` %less:Show a file through the pager. %lf:Alias for `!ls -F -o --color %l | grep ^-` %lk:Alias for `!ls -F -o --color %l | grep ^l` %ll:Alias for `!ls -F -o --color` %load:Load code into the current frontend. %load_ext:Load an IPython extension by its module name. %loadpy:Alias of `%load` %logoff:Temporarily stop logging. %logon:Restart logging. %logstart:Start logging anywhere in a session. %logstate:Print the status of the logging system. %logstop:Fully stop logging and close log file. %ls:Alias for `!ls -F --color` %lsmagic:List currently available magic functions. %lx:Alias for `!ls -F -o --color %l | grep ^-..x` %macro:Define a macro for future re-execution. It accepts ranges of history, %magic:Print information about the magic function system. %man:Find the man page for the given command and display in pager. %matplotlib::: %mkdir:Alias for `!mkdir` %more:Show a file through the pager. %mv:Alias for `!mv` %notebook::: %page:Pretty print the object and display it through a pager. %pastebin:Upload code to Github's Gist paste bin, returning the URL. %pdb:Control the automatic calling of the pdb interactive debugger. %pdef:Print the call signature for any callable object. %pdoc:Print the docstring for an object. %pfile:Print (or run through pager) the file where an object is defined. %pinfo:Provide detailed information about an object. %pinfo2:Provide extra detailed information about an object. %popd:Change to directory popped off the top of the stack. %pprint:Toggle pretty printing on/off. %precision:Set floating point precision for pretty printing. %profile:Print your currently active IPython profile. %prun:Run a statement through the python code profiler. %psearch:Search for object in namespaces by wildcard. %psource:Print (or run through pager) the source code for an object. %pushd:Place the current dir on stack and change directory. %pwd:Return the current working directory path. %pycat:Show a syntax-highlighted file through a pager. %pylab::: %qtconsole:Open a qtconsole connected to this kernel. %quickref:Show a quick reference sheet %recall:Repeat a command, or get command to input line for editing. %rehashx:Update the alias table with all executable files in $PATH. %reload_ext:Reload an IPython extension by its module name. %rep:Alias for `%recall`. %rerun:Re-run previous input %reset:Resets the namespace by removing all names defined by the user, if %reset_selective:Resets the namespace by removing names defined by the user. %rm:Alias for `!rm` %rmdir:Alias for `!rmdir` %run:Run the named file inside IPython as a program. %save:Save a set of lines or a macro to a given filename. %sc:Shell capture - run shell command and capture output (DEPRECATED use !). %set_env:Set environment variables. Assumptions are that either "val" is a %store:Lightweight persistence for python variables. %sx:Shell execute - run shell command and capture output (!! is short-hand). %system:Shell execute - run shell command and capture output (!! is short-hand). %tb:Print the last traceback with the currently active exception mode. %time:Time execution of a Python statement or expression. %timeit:Time execution of a Python statement or expression %unalias:Remove an alias %unload_ext:Unload an IPython extension by its module name. %who:Print all interactive variables, with some minimal formatting. %who_ls:Return a sorted list of all interactive variables. %whos:Like %who, but gives some extra information about each variable. %xdel:Delete a variable, trying to clear it from anywhere that %xmode:Switch modes for the exception handlers. %%!:Shell execute - run shell command and capture output (!! is short-hand). %%HTML:Alias for `%%html`. %%SVG:Alias for `%%svg`. %%bash:%%bash script magic %%capture::: %%debug::: %%file:Alias for `%%writefile`. %%html:Render the cell as a block of HTML %%javascript:Run the cell block of Javascript code %%js:Run the cell block of Javascript code %%latex:Render the cell as a block of latex %%perl:%%perl script magic %%prun:Run a statement through the python code profiler. %%pypy:%%pypy script magic %%python:%%python script magic %%python2:%%python2 script magic %%python3:%%python3 script magic %%ruby:%%ruby script magic %%script::: %%sh:%%sh script magic %%svg:Render the cell as an SVG literal %%sx:Shell execute - run shell command and capture output (!! is short-hand). %%system:Shell execute - run shell command and capture output (!! is short-hand). %%time:Time execution of a Python statement or expression. %%timeit:Time execution of a Python statement or expression %%writefile:::

總結

以上是生活随笔為你收集整理的jupyter notebook即原来的Ipython notebook的使用方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 亚洲三级在线观看 | 亚洲精品成av人片天堂无码 | 涩涩成人 | 免费h漫禁漫天天堂 | 夜色综合网 | 美女毛片在线观看 | 精品国产大片大片大片 | 欧美成人国产va精品日本一级 | 亚洲20p| 色屁屁一区二区三区视频 | 偷拍亚洲视频 | 无遮挡av| 久久久成人精品 | 成人91看片 | 熟女精品一区二区三区 | 国产一区不卡在线观看 | 免费在线视频一区二区 | 天天摸天天看 | 五月天婷婷丁香花 | 久久综合综合久久 | 丰满人妻一区二区三区46 | 无码人妻精品中文字幕 | 亚洲国产日韩一区无码精品久久久 | julia在线播放88mav | 人妻少妇久久中文字幕 | 日本成人a | 国产一区二区黑人欧美xxxx | 亚洲8888 | 青青草视频 | 波多野结衣亚洲一区 | 男人与雌性宠物交啪啪 | 中文字幕一区二区免费 | 精品久久毛片 | 调教丰满的已婚少妇在线观看 | www国产精品内射老熟女 | 国模小黎自慰gogo人体 | 免费成年人视频 | 四虎国产在线观看 | 日韩在线观看av | 93看片淫黄大片一级 | 97精品人妻麻豆一区二区 | 久久国内| 黄色网址中文字幕 | 欧美无吗 | 国产无套内射普通话对白 | 日本中文不卡 | 亚洲第三区 | 亚洲一区网站 | 夜夜导航 | 寡妇高潮一级视频免费看 | 久久aⅴ乱码一区二区三区 亚洲成人18 | 日韩精品一区二区三区视频 | 欧美日本一道 | 严厉高冷老师动漫播放 | 反差在线观看免费版全集完整版 | 8x8ⅹ国产精品一区二区二区 | 亚洲最大看欧美片网站 | 人人操日日干 | 中文字幕一区二区在线播放 | 亚洲女人毛茸茸 | 亚洲人成高清 | 日本欧美一区二区三区 | 黄色小视频入口 | 亚洲av无码国产精品色午夜 | 国产精品一区二区黑人巨大 | 开心激情亚洲 | 亚洲一区二区三区91 | 三级全黄做爰龚玥菲在线 | 国产精品15p | 在线播放无码后入内射少妇 | 黄色麻豆网站 | 少妇福利视频 | 福利免费视频 | 国产精品视频久久久久久久 | 少妇视频在线观看 | 嫩草网站在线观看 | 17c国产精品一区二区 | 国产男女猛烈无遮挡 | 日日摸日日碰夜夜爽av | 日本h在线观看 | va在线播放 | 免费荫蒂添的好舒服视频 | 三年电影在线观看 | 91天天干 | 国产精品久久亚洲 | 国产尻逼视频 | 亚洲图片一区二区三区 | 亚洲精品99久久久久中文字幕 | 久久精品无码一区二区三区毛片 | 伊人久久一区二区三区 | 深夜福利国产精品 | 亚洲综合久久网 | www.黄色.| 91在线观看 | 一区二区三区在线观看免费视频 | 99久久精品一区二区 | 啪啪福利| 精品一区二区三区成人免费视频 | 香蕉视频黄在线观看 |