Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC example robust_models_1 missing link and R error #1461

Closed
josef-pkt opened this issue Mar 11, 2014 · 9 comments
Closed

DOC example robust_models_1 missing link and R error #1461

josef-pkt opened this issue Mar 11, 2014 · 9 comments

Comments

@josef-pkt
Copy link
Member

link on landing page is wrong because of typo
typo: should be models with s at the end
https://github.com/statsmodels/statsmodels/blob/master/docs/source/examples/landing.json#L100

robust_models_1 was not edited in https://github.com/statsmodels/statsmodels/pull/1445/files
was this an oversight or nothing to do?

also
http://statsmodels.sourceforge.net/devel/examples/notebooks/generated/robust_models_1.html
contains rmagic which is not calculated/rendered in the notebook



%load_ext rmagic

%R library(robustbase)
%Rpush yy xx
%R mod <- lmrob(yy ~ xx);
%R params <- mod$coefficients;
%Rpull params

Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize,  :
  unable to start device PNG
In addition: Warning message:
In png("/tmp/tmpiRnqij/Rplots%03d.png", ) :
  unable to open connection to X11 display ''
@josef-pkt
Copy link
Member Author

I could fix the typo in the json file, but I don't know about the rest.

@jseabold
Copy link
Member

Go ahead and fix the typo, if you don't mind. I thought I fixed the R magic by installing robustbase on that machine (it's been broken for a while). I'll have to see what I can do about connecting the cronjob to an X11 display. There really shouldn't be any reason for an X11 call in that code from what I can tell, so I think that's a rpy2 problem. I should be able to connect to a display from cron though.

@jseabold
Copy link
Member

Nm, it looks like it's coming from IPython.

@jseabold
Copy link
Member

ipython/ipython#5329

@jseabold
Copy link
Member

There was nothing to do in robust_models_1. Most of the other commits were just changing fig sizes to look a little better. Also, IPython seems to be stepping on the name attribute in cells so a lot of changes were do nothing changes.

@jseabold
Copy link
Member

I think it's no longer part of the nbformat spec in 2.0 going forward, so the name="" might get changed as we make changes / save things.

@josef-pkt
Copy link
Member Author

Ok, I'll fix the typo

@bashtage
Copy link
Member

@josef-pkt This has been fixed. Closeable.

@josef-pkt
Copy link
Member Author

ancient issue, closing

@bashtage Thanks for finding it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants