I'm not sure how to word this but I'm not getting the complete history after I run a script. I have some print statements and I see the results print out as it's running. But then when I go back and scroll vertically to take a closer look at the output, the results are gone. In other words the first lines are not displayed.
I have the following statement in my code so it should display all the lines
pd.set_option('display.max_rows', 180000)
What do I need to do to see all the output; not just the last part ?
You probably have to increase the size of the scrollback buffer. If you're using the QT console, there's a StackOverflow answer here that shows how to do that. If you're using ipython from another console, you'll have to look up how to change the size of the scrollback buffer there.
Related
I've just installed this library. PhpStorm does its usual code completion, except for the \XeroAPI\XeroPHP\Api\AccountingApi class. The \XeroAPI\XeroPHP\Api\IdentityApi class in the same folder works just fine.
The file is quite big - 2,560KB. If I delete roughly half of the 65,000 lines from the class (and it works whether it's the first half or the second half) then I get my code completion back. In fact, I can delete just the last 3,000 or so lines (getting the file down to 2,499KB) and it works.
I've also tried a quick regex find/replace to remove all the #throws PHPDoc comments. This got the file down to 2,491KB and hey presto, code completion works fine.
If I had to make a guess I'd say it's not doing code completion with source files over 2.5MB or something, but I can't find any setting for this.
Any way to get code completion going with this file short of deleting stuff from it (which will be restored next time I do a Composer update anyway)?
Based on your info (especially the mentioned file size and the fact that it starts to work after reducing it) you have hit a limit of max file size that IDE is willing to parse and index.
Solution: configure idea.max.intellisense.filesize option using Help | Edit Custom Properties command. By default it has a value of 2500 (size in KB). Set it to 3000 or so (to cover your file size) and restart IDE (it reads and applies settings from idea.properties file on start only).
idea.max.intellisense.filesize=3000
P.S. Do not put that value too big as it may cause other performance issues.
I have a Foreach Container in which I have a Execute Process Task . I have many Console.WriteLine() statements in it.
The 3 images highlighted in the image can be used to get output from .exe .
I declared a variable in package to get error message from Execute Process Task by using StandardErrorVariable .
The problem is the Screen Fades Out, it doesnt display anything on screen , this happens not only when i use StandardErrorVariable but other properties highlighted in figure.
Also even though we get values into variables , the lock on them is not getting released so i am unable to use them anywhere in the package.
Also it will be helpful if you can redirect me to exact usage of all 3 variables highlighted
Does this happen when the package is run from a server catalog as well as visual studios? If you add a breakpoint, all vars will show up under the 'locals' window.
I'm having trouble filling in my curves using contourf() on Octave. I'm running Octave 3.6.4 on Mac OS X 10.8.5.
When I use contour(x,fp,data3) I get the following, which is correct:
[Contour plot of data, not filled]
However, when I want try contourf(x,fp,data3) in order to fill in the gaps I get this monstrosity:
Contourf plot of data, filled, but not correct
What can I do to fix this? I've read the contourf() documentation and can't see anything there that I'm missing. Any advice would be helpful.
Thanks!
P.S. Here's a link to a smaller version of the data file: https://www.dropbox.com/s/lmvdzi7l42tasr8/Ch942.csv?dl=0. The whole file is huge, so this represents the first few lines but still shows the problem when plotted in Octave.
Unfortunately I don't have enough reputation points to post more than two links, so I've deleted the contour() plot that looks right, but isn't filled in. Sorry.
I'm working on a tricky warning and, I just can't seem to get to the bottom of it. Here's what's going on:
I created a header file to define the register addresses for one of my sensor devices. My program works great however, upon compiling the project, I get the warning "device\device_reg.h(44): warning: #1-D: last line of file ends without a newline"
However, when I go to the file, it does appear to end in a new line. I remember that some text editors sometimes don't appropriately handle enter the newline. So, I deleted the newline, hit the return at the end of the new line, and recompiled. The warning persisted. I repeated this process with notepad++ and the original notepad in windows. Same results...
I am currently compiling c++ code in Keil 5.1.0.0 with an Arm compiler version 5.03.0.76
Any help would be greatly appreciated.
Thank you,
Beau
I had a similar problem with an included file. It turned out that the last line was indented. So when I hit the enter key the next line was indented leaving spaces on the new line. I hit back space to return the last row to the 0 position and the warning went away.
So, it wasn't the solution that I wanted. However, I resolved the issue. I combined the register map definitions with the class header file. I still don't know why I was getting this problem earlier and if anyone has any insights that would be great. However, as for now, this problem is solved.
Thank you.
I've noticed that Tk's clipboard command sometimes does not really append to the system clipboard. I've noticed this in other programs previously (tkcon for example) where if I copy some text and try to paste it into another program (notepad for example) I get nothing. Sometimes I need to do the copy again in order to get the text into the clipboard.
I'm currently developing my own text editor (see pure console text editor 2 on the tcler's wiki or on github) and I can't get the clipboard to work accross applications.
The implementation looks simple enough:
clipboard clear
clipboard append -- [join $copy_lines \n]
but it doesn't work. By doesn't work I mean it works within the running application but if I have two applications open and try to copy from the first and paste into the second then it doesn't work.
Not sure what else I need to do. From the documentation it looks like it should work.
Found the problem (at least for my program). My program runs in plain old tclsh, not wish and waits for inputs in a busy loop (peppered with after commands so as to reduce CPU usage). As such, it never enters the event loop. Turns out Tk updates the clipboard in the event loop (presumably on idle) so the system clipboard never gets updated (though the internal data structures stores the copied text just fine).
The solution is to enter the event loop. Ideally I'd refactor my code to use fileevents instead of a while loop. For a quick fix I'm just calling update whenever I process user inputs.
As for Tk in general, it appears that copied text dies with the application. So the copied text is available while the program is running but disappears when the program quits. It doesn't seem to happen on my Ubuntu machine. I guess I've got a daemon running that maintains the clipboard. That's OK. I can live with it for now.