Posts

Matplotlib notebook magic inline/plotting commands not working

Image
up vote 0 down vote favorite I am running a jupyter notebook (5.7.0) with pandas (0.23.4) and matplotlib (3.0.1). When I try to plot using the pandas.DataFrame.plot() function it gives me the text of the object: <pandas.plotting._core.FramePlotMethods object at 0x7f612fdb74a8> Naturally I googled this, and have sinced tried the magic commands: %matplotlib inline and %matplotlib notebook in the very first cell after shutting down the notebook and restarting it, and still it seems to make no difference. So for completeness sake, my first cell is the magic command, and in the second I import numpy,pandas and matplotlib. In the following cells are create my array and pass it to the DataFrame command. Finally I call: pandas.DataFrame.plot(df) and the text of the object (from above) appears, regardless of ...

How to omit constructor from Swagger documentation on WebAPI

Image
up vote 0 down vote favorite I've found an answer here but it is not compatible for constructor. I have many returning class using constructor like below: public class a { public x; public y; public z; public a(B b) { x = b.x; y = b.y; z = b.z; } } But swagger seems work slowly when I use constructors with DB Entity as parameter which has some DB relationship. Is there any way to stop parsing these constructor to avoid slowly swagger-ui generation? c# asp.net-web-api swagger swagger-ui share | improve this question asked Nov 19 at 10:32 Terry Wei ...