ipython

Using ipython notebook offline

耗尽温柔 提交于 2021-02-07 04:00:29
问题 Can ipython notebook be used when not connected to the internet? My installation doesn't open a web browser tab if not online. Thanks! 回答1: Yes, it should work without needing an internet connection. If a browser tab doesn't open automatically, open a browser and go to the URL it gives you in the terminal where you started the notebook (by default, this is http://127.0.0.1:8888/ ). It uses the 'loopback' network interface, which stays within your own computer. 来源: https://stackoverflow.com

registering kernels in ipython/jupyter notebook - kernel.json

亡梦爱人 提交于 2021-02-07 02:58:57
问题 With the latest version of IPython , kernels can be registered by placing a kernel.json file in ~/.ipython/kernels/<kernel-name>/ . I am currently trying to add a julia and a R kernel and I am wondering who is responsible for creating and maintaining those kernel.json files. Currently, I googled and created following kernel.json for julia by hand: { "display_name": "Julia", "language": "julia", "argv": [ "julia", "-i", "-F", "/User/<user>/.julia/v0.3/IJulia/src/kernel.jl", "{connection_file}"

Python - Can't import Seaborn

ⅰ亾dé卋堺 提交于 2021-02-06 13:54:39
问题 I'm running iPhyton Notebooks and I'm trying to import the Seaborn package. When I try to import it from the Terminal, it loads up fine, but when I import it through iPython Notebooks, it give me the following error. I have even tried to re-install Seaborn using both Conda and Pip inside iPython notebooks and still it wont work. Any idea why? Thanks. ImportError Traceback (most recent call last) <ipython-input-1-417274a1ae6c> in <module>() 1 get_ipython().system(u'conda install seaborn') 2

Python - Can't import Seaborn

最后都变了- 提交于 2021-02-06 13:54:01
问题 I'm running iPhyton Notebooks and I'm trying to import the Seaborn package. When I try to import it from the Terminal, it loads up fine, but when I import it through iPython Notebooks, it give me the following error. I have even tried to re-install Seaborn using both Conda and Pip inside iPython notebooks and still it wont work. Any idea why? Thanks. ImportError Traceback (most recent call last) <ipython-input-1-417274a1ae6c> in <module>() 1 get_ipython().system(u'conda install seaborn') 2

Root access for Jupyter/iPython Notebook

落花浮王杯 提交于 2021-02-06 10:13:52
问题 I'm trying to use the bash kernel in iPython/Jupyter notebook, but I need sudo access within the notebook itself. I've tried $ sudo jupyter notebook to run the notebook as root, but that only returns: $ jupyter: 'notebook' is not a Jupyter command So, I'm left with running $ jupyter notebook (unless there's a way to run Jupyter notebook as root). I also can't do su root in the notebook itself because that requires an input and the notebook won't let me give an input. Finally, there is

Root access for Jupyter/iPython Notebook

北慕城南 提交于 2021-02-06 10:12:24
问题 I'm trying to use the bash kernel in iPython/Jupyter notebook, but I need sudo access within the notebook itself. I've tried $ sudo jupyter notebook to run the notebook as root, but that only returns: $ jupyter: 'notebook' is not a Jupyter command So, I'm left with running $ jupyter notebook (unless there's a way to run Jupyter notebook as root). I also can't do su root in the notebook itself because that requires an input and the notebook won't let me give an input. Finally, there is

Using IPython from the Python shell like `code.interact()`

我的未来我决定 提交于 2021-02-06 08:41:34
问题 Is it possible to use the IPython shell from an existing Python shell, as a shell-inside-a-shell, similarly to the built-in code.interact() ? 回答1: The recommended way of embedding IPython works fine: ~ $ python Python 2.7 [...] >>> from IPython.Shell import IPShellEmbed >>> ipshell = IPShellEmbed() >>> ipshell() In [1]: 回答2: In IPython 0.11 the API has been overhauled and the shell is even easier to invoke: import IPython IPython.embed() 回答3: Django manage.py shell invoke a IPython shell when

Using IPython from the Python shell like `code.interact()`

吃可爱长大的小学妹 提交于 2021-02-06 08:41:21
问题 Is it possible to use the IPython shell from an existing Python shell, as a shell-inside-a-shell, similarly to the built-in code.interact() ? 回答1: The recommended way of embedding IPython works fine: ~ $ python Python 2.7 [...] >>> from IPython.Shell import IPShellEmbed >>> ipshell = IPShellEmbed() >>> ipshell() In [1]: 回答2: In IPython 0.11 the API has been overhauled and the shell is even easier to invoke: import IPython IPython.embed() 回答3: Django manage.py shell invoke a IPython shell when

Giant IPKernelApp Error Using Hydrogen in Atom

﹥>﹥吖頭↗ 提交于 2021-02-04 21:05:55
问题 Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too. I created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment in Atom I am getting this issue. I've tried upgrading ipykernel but it is already the

Giant IPKernelApp Error Using Hydrogen in Atom

强颜欢笑 提交于 2021-02-04 21:01:52
问题 Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too. I created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment in Atom I am getting this issue. I've tried upgrading ipykernel but it is already the