Questions tagged as 'ipython-notebook'

2
answers

Matplotlib + Latex: Writing text in the axes in Portuguese

From the beginning, the versions I have are: Ipython: 1.1.0 Matplotlib: 1.3.1 Latex: pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012 / Debian) OS: Ubuntu 12.04 I want to plot what is below, in an Ipython-Notebook session # Using the...
asked by 12.12.2013 / 13:08
1
answer

How to resize graphics in IPython Notebook without loss of quality?

In IPython Notebook I produce graphics with (for example): x = [1,2,3,4] y = [5,6,7,8] plot(x, y) When I position the cursor on the generated graph, the tool to resize the graph appears in the lower right corner, but when I resize it it bec...
asked by 14.12.2013 / 22:49
1
answer

Commenting on code blocks, IPython Notebook

It's very annoying to have to comment line by line, and I want to join a powerful editor (like Vim) to the IP-Notebook. But there should be a way to comment on blocks of code in a simple way. My versions: IP-Notebook: 1.1.0 Chrome: 3...
asked by 15.12.2013 / 15:03
0
answers

Add shortcut to command in jupyter notebook

Hello, there is a way to add a shortcut key to the command: -restart kernel & clean output No need to run the code every time you open the jupyter notebook.     
asked by 24.12.2018 / 19:08
1
answer

Run fortran code requesting data read on jupyter-notebook with python restart kernel

Jupyter notebook restart when you run a fortran code that requests data entry, as follows: Notethattheavariableshouldbeprovidedsoonafterthef1call.However,anerroroccursandthekernelrestart: Note: The code works fine without the statement...
asked by 17.09.2016 / 14:46
1
answer

How to use the results and variables of a Jupyter notebook in another?

Suppose there is a Jupyter notebook called notebook1.ipynb where several variables are calculated with interesting results. Suppose then, as part of another analysis on another notebook called notebook2.ipynb , it is interesting to access the...
asked by 20.09.2018 / 00:49
0
answers

How to process data without the kernel die?

I want to process the data in a unsupervised.py file. However, every time I start, my computer almost freezes and it looks like the kernel dies. It seems to be generated because of a memory management error. In particular, it is when I execute...
asked by 11.08.2018 / 12:48
0
answers

Compare files in two directories and copy duplicates into a third directory - python

I have the following situation: A directory with more than 3,000 files .jpg of which were copied half of the files to another directory, but after a problem in the computer the copied files were corrupted. Then I created a code to acce...
asked by 17.08.2018 / 15:05
0
answers

ImportError on the jupyter notebook despite installing the library called

I tried to import a library, but it does not seem to be added to the jupyter notebook import sys print("sys.executable:\n",sys.executable) print("sys.path:\n",sys.path) from textblob import TextBlob And that gives me sys.executable...
asked by 03.08.2018 / 12:47
1
answer

I'm trying to make my chart start from position 0 using hist ()

Using USAGE_PLOT is easy to do but I want to do and learn how to use hist. the same way it is in the image below in which it was used usage_plot(trip_data, 'duration', ['duration < 60'], boundary = 0, bin_width = 5) ButI'mtryingsever...
asked by 18.09.2017 / 00:24