Is there line wrapping in Notebook?

1194
1
Jump to solution
03-08-2022 08:28 AM
JaredPilbeam2
MVP Regular Contributor

I'm looking through the menus in a Pro Notebook to wordwrap, but I'm finding nothing. Does it exist?

Tags (3)
1 Solution

Accepted Solutions
JaredPilbeam2
MVP Regular Contributor

I changed the title from wordwrap to line wrapping since the answer I found called it that. Here's how to set it up to work in Jupyter Notebook, which should also work in your Pro Notebook at the same time.

1) Look for your configuration file
Win Start Menu > ArcGIS > Python Command Prompt > jupyter --config-dir

2) The command prompt should tell you it's in C:\users\youl\.jupyter
C:\users\you\.jupyter > nbconfig > notebook.json > add "lineWrapping": true after "lineNumbers": true,

For example,

 

{
"Cell": {
"cm_config": {
"lineNumbers": true,
"lineWrapping": true
}
},
"keys": {
"command": {
"unbind": [
"i,i"
],
"bind": {
"ctrl-i": "jupyter-notebook:interrupt-kernel"
}
}
},
"load_extensions": {
"repr_style/main": true
},
"Notebook": {
"Toolbar": true
}
}

 

 

 

 

View solution in original post

1 Reply
JaredPilbeam2
MVP Regular Contributor

I changed the title from wordwrap to line wrapping since the answer I found called it that. Here's how to set it up to work in Jupyter Notebook, which should also work in your Pro Notebook at the same time.

1) Look for your configuration file
Win Start Menu > ArcGIS > Python Command Prompt > jupyter --config-dir

2) The command prompt should tell you it's in C:\users\youl\.jupyter
C:\users\you\.jupyter > nbconfig > notebook.json > add "lineWrapping": true after "lineNumbers": true,

For example,

 

{
"Cell": {
"cm_config": {
"lineNumbers": true,
"lineWrapping": true
}
},
"keys": {
"command": {
"unbind": [
"i,i"
],
"bind": {
"ctrl-i": "jupyter-notebook:interrupt-kernel"
}
}
},
"load_extensions": {
"repr_style/main": true
},
"Notebook": {
"Toolbar": true
}
}