jupyter-console

Connecting to a running Jupyter kernel with a currently running process

喜夏-厌秋 提交于 2021-01-28 11:10:16
问题 Over the weekend I had some long processes running in a Jupyter notebook, but the browser window was closed at some point. According to this answer, the process shouldn't have been canceled, but whatever output I would have gotten would be lost. This is okay, as I only need access to the resulting objects from the process. My goal is to connect to the running kernel in the console, and work from there. According to Jupyter's documentation, I should be able to do this with jupyter console -

Jupyter QtConsole: select one of the built in CSSs as the default via configuration

狂风中的少年 提交于 2020-07-23 06:36:18
问题 I am using Jupyter in Windows. I mean to change coloring of the QT console. How can I select one of the built in CSSs as the default, via configuration file? I mean to avoid passing it as an argument as in jupyter qtconsole --style monokai . I would rather use a configuration file, e.g. file1 = %USERPROFILE%\.jupyter\jupyter_qtconsole_config.py What I ultimately want to do is write monokai in some configuration file, and have the QTconsole load the built-in monokai . What I tried so far: As a

Jupyter QtConsole: select one of the built in CSSs as the default via configuration

与世无争的帅哥 提交于 2020-07-23 06:35:08
问题 I am using Jupyter in Windows. I mean to change coloring of the QT console. How can I select one of the built in CSSs as the default, via configuration file? I mean to avoid passing it as an argument as in jupyter qtconsole --style monokai . I would rather use a configuration file, e.g. file1 = %USERPROFILE%\.jupyter\jupyter_qtconsole_config.py What I ultimately want to do is write monokai in some configuration file, and have the QTconsole load the built-in monokai . What I tried so far: As a

Jupyter QtConsole: select one of the built in CSSs as the default via configuration

吃可爱长大的小学妹 提交于 2020-07-23 06:34:05
问题 I am using Jupyter in Windows. I mean to change coloring of the QT console. How can I select one of the built in CSSs as the default, via configuration file? I mean to avoid passing it as an argument as in jupyter qtconsole --style monokai . I would rather use a configuration file, e.g. file1 = %USERPROFILE%\.jupyter\jupyter_qtconsole_config.py What I ultimately want to do is write monokai in some configuration file, and have the QTconsole load the built-in monokai . What I tried so far: As a

Jupyter Notebook (only) Memory Error, same code run in a conventional .py and works

北慕城南 提交于 2020-01-22 14:06:09
问题 I have an assignment for a Deep Learning class, and they provide a Jupyter notebook as a base code, the thing is that after running the data import and reshape, jupyter notebook through a "Memory Error", after some analysis y tried to compile the same code in a normal .py file, and everything runs well. The thing is that I'm required (preferably) to use the Jupyter notebook as the base for development, since is more interactive for the kind of task. <ipython-input-2-846f80a40ce2> in <module>(

Change Jupyter Notebook's localhost:8888 default server with other

隐身守侯 提交于 2019-12-05 01:24:06
问题 i have two machines connected via lan. other system's ip address is 192.1xx.x.x i want to run jupyter ipython query's on my machine which can be exexuted on his machine. at the start of ipython notebook, there is a black screen which contains this: [I 11:12:52.802 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/ can i change this to my specified location? 回答1: You can specify the port you want Jupyter to run uncommenting/editing the following line in ~/.jupyter/jupyter

pandas display: truncate column display rather than wrapping

…衆ロ難τιáo~ 提交于 2019-12-04 03:44:03
问题 With lengthy column names, DataFrames will display in a very messy form seemingly no matter what options are set. Info: I'm in Jupyter QtConsole, pandas 0.20.1, with the following relevant options specified at startup: pd.set_option('display.max_colwidth', 20) pd.set_option('expand_frame_repr', False) pd.set_option('display.max_rows', 25) Question: how can I truncate the DataFrame if necessary rather than wrapping the columns to the next line, while keeping expand_frame_repr=False ? Here's an

Jupyter Notebook (only) Memory Error, same code run in a conventional .py and works

我只是一个虾纸丫 提交于 2019-12-03 12:36:22
I have an assignment for a Deep Learning class, and they provide a Jupyter notebook as a base code, the thing is that after running the data import and reshape, jupyter notebook through a "Memory Error", after some analysis y tried to compile the same code in a normal .py file, and everything runs well. The thing is that I'm required (preferably) to use the Jupyter notebook as the base for development, since is more interactive for the kind of task. <ipython-input-2-846f80a40ce2> in <module>() 2 # Load the raw CIFAR-10 data 3 cifar10_dir = 'datasets\\' ----> 4 X, y = load_CIFAR10(cifar10_dir)

Autocomplete for jupyter notebook and ipython console for classes with “@property”

南楼画角 提交于 2019-12-02 07:55:55
问题 I want to use autocomplete in ipython and jupyter for the following code with read-only class attributes (using @property ): class A(object): def __init__(self): self.__value = 1 @property def value(self): return self.__value class B(object): def __init__(self): self.a = A() class C(object): def __init__(self): self.__a = A() @property def a(self): return self.__a b = B() c = C() Both >>> b.a.value and >>> c.a.value work well. But autocomplete for ipython and jupyter notebook works only for >