REGR: Notebook (html) repr of DataFrame no longer follows min_rows/max_rows settings 
- [ ] closes #37359
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Fix display logic in number of rows,
explained here https://pandas.pydata.org/docs/dev/user_guide/options.html#frequently-used-options
@jorisvandenbossche can you please confirm it works? I am still unable to install dev environment with jupyter (even conda). I managed to install dev env with jupyter. Looks like everything works. But please check in your environment as well.

![image](https://user-images.githubusercontent.com/41443370/97032497-237e0c00-158c-11eb-850b-27cd4471c442.png)
 I can confirm this works, thanks! also pls rebase @ivanovmg can you merge master.

@jorisvandenbossche if any comments. @ivanovmg can you merge master one more time and this can be merged cc @jorisvandenbossche  > 
> 
> @ivanovmg can you merge master one more time and this can be merged cc @jorisvandenbossche

Done, it's green. thanks @ivanovmg 