我想在浏览器中增加ipython笔记本的宽度.我有一个高分辨率的屏幕,我想扩大单元格的宽度/大小,以利用这个额外的空间.
谢谢!
编辑:5/2017
我现在使用jupyterthemes:https://github.com/dunovank/jupyter-themes
这个命令:
jt -t oceans16 -f roboto -fs 12 -cellw 100%
Run Code Online (Sandbox Code Playgroud)
使用漂亮的主题将宽度设置为100%.
我正在使用带有--pylab = inline的IPython,并且有时希望快速切换到交互式,可缩放的Matplotlib GUI以查看绘图(当您在终端Python控制台中绘制内容时弹出的那个).我怎么能这样做?最好不要离开或重启我的笔记本.
IPy笔记本中内联图的问题在于它们的分辨率有限,我无法放大它们以查看一些较小的部分.使用从终端开始的Maptlotlib GUI,我可以选择要放大的图形矩形,并相应地调整轴.我试过试验
from matplotlib import interactive
interactive(True)
Run Code Online (Sandbox Code Playgroud)
和
interactive(False)
Run Code Online (Sandbox Code Playgroud)
但那没有做任何事情.我也无法在线找到任何提示.
我有以下情节:
如果它们具有相同的宽度,它看起来会更好.你知道在我使用ipython笔记本时怎么做%matplotlib inline
吗?
更新:
为了生成这两个数字,我使用以下函数:
import numpy as np
import matplotlib.pyplot as plt
def show_plots2d(title, plots, points, xlabel = '', ylabel = ''):
"""
Shows 2D plot.
Arguments:
title : string
Title of the plot.
plots : array_like of pairs like array_like and array_like
List of pairs,
where first element is x axis and the second is the y axis.
points : array_like of pairs like integer and integer
List of pairs,
where first element is x coordinate …
Run Code Online (Sandbox Code Playgroud) 我有最新/更新的Anaconda包.每次我尝试使用python 3.6.6绘制内容时,我在JupyterLab中收到以下错误...
Javascript错误:未定义IPython
当我使用ipython内核在Spyder中运行相同的代码时,它运行正常.一直在网上看,但似乎无法弄清楚发生了什么.任何帮助,将不胜感激.
python ×4
ipython ×3
matplotlib ×3
3d ×1
javascript ×1
jupyter ×1
jupyter-lab ×1
plot ×1
zoom ×1