-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Line wrapping #106
Comments
Well, it does work for me, but you are probably hitting a race condition as you are accessing the
@takluyver we don't seem to expose the class_config on the class which prevent to do |
I don't think there's a good way to expose it on the class, because it relies on the |
@takluyver @Carreau does this work if specified via the frontend-config API? |
I'm not sure I'll try to have a look, assigning to myself. |
Yes it does work independently for markdown cells and code cell and end up as the following in config:
|
Does not work for me.
does not exist for me. I have
|
Where did you do that ?
Did you reload the page ? |
I put this
into I did restart the server. What happened was: no wrapping, but then when I would try to execute cells that had long lines, I would get a python syntax error where there wasn't one before, with the interpreter giving the same kind of complaint as when one does a line-break without a |
No you need to execute that only once in the js console of the browser. Not in custom.js |
Got it - thank you very much indeed. |
Is it possible to turn line wrapping on via the %config magic? If so could you please share the code to do so? |
That browser console says it does not recognize Ipython. Not being familiar with that environment, how do I make it aware of IPython? |
|
I've updated ipython-notebook to Jupyter and noticed that code wrapping in cells is turned off now. In previous version you could turn it on by adding line
IPython.Cell.options_default.cm_config.lineWrapping = true;
to the custom.js, but now this doesn't help. Javascript console shows that there no such parameters as lineWrapping (and lineNumbers also) for the cm_config.
Was this feature moved somewhere (or removed) or is this a problem with my installation?
The text was updated successfully, but these errors were encountered: