1
IPython文檔引用了%bg魔術函數。但是,當我嘗試在0.12.1中使用它時,未找到它。我錯過了明顯的東西嗎?IPython中缺少背景魔術命令(%bg)
In [38]: %bg
ERROR: Magic function `bg` not found.
%lsmagic給出:
In [46]: %lsmagic
Available magic functions:
%alias %autocall %automagic %bookmark %cd %clear %cls %colors %config %connect_info %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %guiref %hist %history %install_default_config %install_profiles %less %load_ext %loadpy %logoff %logon %logstart %logstate %logstop %lsmagic %macro %magic %more %notebook %page %pastebin %pdb %pdef %pdoc %pfile %pinfo %pinfo2 %popd %pprint %precision %profile %prun %psearch %psource %pushd %pwd %pycat %pylab %qtconsole %quickref %recall %rehashx %reload_ext %rep %rerun %reset %reset_selective %run %save %sc %store %sx %tb %time %timeit %unalias %unload_ext %who %who_ls %whos %xdel %xmode
據說這個魔術功能應該在v0.12.1中可用。你確定沒有安裝另一箇舊版本嗎?在命令行嘗試:'ipython -Version' – bernie
ipython -V返回0.12.1 – Lobert
這是在文檔中的位置?文檔可能已過時。 –