Re: [jupyter] Re: how come cells do not display all my code?

2018-02-06 Thread Andy Davidson
Hi Rolan

I am able to reproduce the problem in both chrome and safari running on mac
os high Serria.

Turnning lineWrapping off in codeCellĀ¹s seems to have resolved the problem.
I am not sure if this is a bug or a feature. What I wanted was to format my
python code cells so that all the code would always be displayed even if
line # are displayed or I download to html or pdf. I did not want ot have to
manualy insert line breaks or do other formating. Maybe there is a better
way to  get this kind of functionalty?

Kind regards

Andy


$ cat ~/.jupyter/nbconfig/notebook.json

{

"aedwip_comment": {


"howToWrapText":"https://stackoverflow.com/questions/36419342/how-to-wrap-co
de-text-in-jupyter-notebooks"

},

  "MarkdownCell": {

"cm_config": {

  "lineWrapping": true

}

  },

  "CodeCell": {

"cm_config": {

  "lineWrapping": false

}

  }

}

$ 


From:  <jupyter@googlegroups.com> on behalf of Thomas Kluyver
<tak...@gmail.com>
Reply-To:  <jupyter@googlegroups.com>
Date:  Monday, February 5, 2018 at 2:35 AM
To:  Project Jupyter <jupyter@googlegroups.com>
Subject:  Re: [jupyter] Re: how come cells do not display all my code?

> Do you have any extensions or custom config in your browser? Can you reproduce
> the problem in another browser?
> 
> On 5 February 2018 at 07:02, Roland Weber <rolwe...@de.ibm.com> wrote:
>> Hello Andy,
>> 
>> maybe there's something in the default stylesheet. I know that long output is
>> shown with a scrollbar by default, but you can click to the left of the
>> output to have that section expanded. Could be that the same thing is in
>> effect for code cells as well.
>> 
>> cheers,
>>   Roland
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jupyter+unsubscr...@googlegroups.com.
>> To post to this group, send email to jupyter@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/59261ea3-6454-4a17-9a99-1992ce21ec3
>> 4%40googlegroups.com
>> <https://groups.google.com/d/msgid/jupyter/59261ea3-6454-4a17-9a99-1992ce21ec
>> 34%40googlegroups.com?utm_medium=email_source=footer> .
>> 
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/CAOvn4qjNR438W%3DAM%3DsiRsiHECPEdeC9
> AyrXKgtNkNUXG7OsOaw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jupyter/CAOvn4qjNR438W%3DAM%3DsiRsiHECPEdeC
> 9AyrXKgtNkNUXG7OsOaw%40mail.gmail.com?utm_medium=email_source=footer> .
> For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/D69DDE1A.5DC11%25Andy%40SantaCruzIntegration.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Re: how come cells do not display all my code?

2018-02-05 Thread Thomas Kluyver
Do you have any extensions or custom config in your browser? Can you
reproduce the problem in another browser?

On 5 February 2018 at 07:02, Roland Weber  wrote:

> Hello Andy,
>
> maybe there's something in the default stylesheet. I know that long output
> is shown with a scrollbar by default, but you can click to the left of the
> output to have that section expanded. Could be that the same thing is in
> effect for code cells as well.
>
> cheers,
>   Roland
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/59261ea3-6454-4a17-9a99-1992ce21ec34%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAOvn4qjNR438W%3DAM%3DsiRsiHECPEdeC9AyrXKgtNkNUXG7OsOaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Re: how come cells do not display all my code?

2018-02-04 Thread Roland Weber
Hello Andy,

maybe there's something in the default stylesheet. I know that long output 
is shown with a scrollbar by default, but you can click to the left of the 
output to have that section expanded. Could be that the same thing is in 
effect for code cells as well.

cheers,
  Roland

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/59261ea3-6454-4a17-9a99-1992ce21ec34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Re: how come cells do not display all my code?

2018-02-02 Thread Andy Davidson
Hi Roland


From:  <jupyter@googlegroups.com> on behalf of Roland Weber
<rolwe...@de.ibm.com>
Reply-To:  <jupyter@googlegroups.com>
Date:  Tuesday, January 30, 2018 at 11:30 PM
To:  Project Jupyter <jupyter@googlegroups.com>
Subject:  [jupyter] Re: how come cells do not display all my code?

> Hello Andy,
> 
> is this about displaying the Python *code*, or the *output* when you run the
> code?

My problem with code. output is always displayed correct. I have tried your
suggestions with out any luck. Every time I start my notebook or restart it
have to click in each cell to cause all the python source to be displayed

I  am running Jupyter on my local machine. I notice the following on start
up

[I 13:30:55.704 NotebookApp] Accepting one-time-token-authenticated
connection from ::1

[W 13:31:06.901 NotebookApp] 404 GET
/nbextensions/widgets/notebook/js/extension.js?v=20180201133054 (::1)
13.58ms referer=http://localhost:/notebooks/logisticRegression.ipynb

[I 13:31:07.632 NotebookApp] Kernel started:
42777506-bc3d-4b95-b2f6-7d821d1f6ffc

[I 13:31:08.556 NotebookApp] Adapting to protocol v5.1 for kernel
42777506-bc3d-4b95-b2f6-7d821d1f6ffc



Found the following https://github.com/jupyter/help/issues/186



The following got rid of the console error, how ever I still have the same
original problem


$ $ jupyter nbextension enable --py widgetsnbextension
Enabling notebook extension jupyter-js-widgets/extension...

  - Validating: OK



$ jq "." ~/.jupyter/nbconfig/notebook.json

{

  "aedwip_comment": {

"howToWrapText":
"https://stackoverflow.com/questions/36419342/how-to-wrap-code-text-in-jupyt
er-notebooks"

  },

  "MarkdownCell": {

"cm_config": {

  "lineWrapping": true

}

  },

  "CodeCell": {

"cm_config": {

  "lineWrapping": true

}

  }

}


I noticed that it seems like about half of the python source lines are being
displayed in my code cells. Not sure why clicking on the cell would cause
everything to be displayed?

Any suggestions would be greatly appreciated

Andy

> 
> Restarting the kernel should have no effect on what is being displayed. Unless
> you select "Restart & Clear Output", in which case it is expected that all
> output gets cleared.
> 
> If your problem is missing output, you don't have to run each cell manually.
> Select "Kernel -> Restart & Run All" to restart the kernel and run all cells,
> or "Cell -> Run All" to run all cells without restarting the kernel.
> 
> If you save your notebook before stopping Jupyter or closing the browser, the
> output should still be displayed next time you load it. The state in memory
> will be gone of course, similar to when you restart the kernel.
> 
> The menu items I quoted are from a newer version of Jupyter Notebook. They may
> have had slightly different names in the version 4.4 you are using. Version
> 5.4 is available by now, so you might want to upgrade.
> http://jupyter-notebook.readthedocs.io/en/stable/changelog.html
> 
> hope that helps,
>   Roland
> 


-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/D69A17E8.5DB1E%25Andy%40SantaCruzIntegration.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: how come cells do not display all my code?

2018-01-30 Thread Roland Weber
Hello Andy,

is this about displaying the Python *code*, or the *output* when you run 
the code?

Restarting the kernel should have no effect on what is being displayed. 
Unless you select "Restart & Clear Output", in which case it is expected 
that all output gets cleared.

If your problem is missing output, you don't have to run each cell 
manually. Select "Kernel -> Restart & Run All" to restart the kernel and 
run all cells, or "Cell -> Run All" to run all cells without restarting the 
kernel.

If you save your notebook before stopping Jupyter or closing the browser, 
the output should still be displayed next time you load it. The state in 
memory will be gone of course, similar to when you restart the kernel.

The menu items I quoted are from a newer version of Jupyter Notebook. They 
may have had slightly different names in the version 4.4 you are using. 
Version 5.4 is available by now, so you might want to upgrade.
http://jupyter-notebook.readthedocs.io/en/stable/changelog.html

hope that helps,
  Roland

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/df5e7d1f-9165-4b07-8363-30c5b4e6e3ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.