Python3.6

249 views
Skip to first unread message

Damon Allen

unread,
Dec 25, 2016, 10:13:55 AM12/25/16
to Project Jupyter
I've installed a Python3.6 kernel and am the notebook is having trouble with the new f string formatting.   The code runs correctly but the highlighting shows every character remaining in the cell after the open quote as part of the string, after the close quote, all remaining lines, etc.. 

Matthias Bussonnier

unread,
Dec 25, 2016, 10:45:55 AM12/25/16
to jup...@googlegroups.com
That will likely require codemirror syntax highlighting to be updated,
waiting for a new codemirror release and update the codemirror used by
Jupyter.

Highlighting is still known to be off in many editors, my guess is
that type annotation will be wrong as well.

Cheers,
--
M
> --
> 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+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/369a2871-fe30-41e5-9c21-2d25f03db64e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Milos Miljkovic

unread,
Dec 28, 2016, 7:44:38 AM12/28/16
to Project Jupyter
In conda Py 3.6 install, syntax highlighting seems to be in order.
Selection_026.png

Damon Allen

unread,
Dec 28, 2016, 1:37:22 PM12/28/16
to Project Jupyter
I installed Conda and it still was not working.  I'm running Ubuntu 16.04 and the problem persists in Firefox and Chrome.

Milos Miljkovic

unread,
Dec 29, 2016, 12:00:56 PM12/29/16
to Project Jupyter
Can you post a screenshot of messed up syntax highlighting? I'm on Xubuntu 14.04.5 and using google-chrome-beta from Google repo.

Damon Allen

unread,
Dec 29, 2016, 12:07:19 PM12/29/16
to Project Jupyter


On Thursday, December 29, 2016 at 12:00:56 PM UTC-5, Milos Miljkovic wrote:
Can you post a screenshot of messed up syntax highlighting? I'm on Xubuntu 14.04.5 and using google-chrome-beta from Google repo.


 

Matthias Bussonnier

unread,
Dec 29, 2016, 1:51:27 PM12/29/16
to jup...@googlegroups.com
This has been fixed in https://github.com/jupyter/notebook/pull/1764, so you need notebook server version 4.3 or above to have it. And make sure the files are not cached.

See the `Help > About` Menu in the notebook to see the version. If you can't upgrade we can figure out how to hack our way around that and monkeypatch the javascript.

-- 
M



--
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+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Damon Allen

unread,
Dec 29, 2016, 1:59:37 PM12/29/16
to Project Jupyter

I have notebook server version 4.3.1.




On Thursday, December 29, 2016 at 1:51:27 PM UTC-5, Matthias Bussonnier wrote:
This has been fixed in https://github.com/jupyter/notebook/pull/1764, so you need notebook server version 4.3 or above to have it. And make sure the files are not cached.

See the `Help > About` Menu in the notebook to see the version. If you can't upgrade we can figure out how to hack our way around that and monkeypatch the javascript.

-- 
M


On Thu, Dec 29, 2016 at 6:07 PM, Damon Allen <damon...@gmail.com> wrote:


On Thursday, December 29, 2016 at 12:00:56 PM UTC-5, Milos Miljkovic wrote:
Can you post a screenshot of messed up syntax highlighting? I'm on Xubuntu 14.04.5 and using google-chrome-beta from Google repo.


 

--
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+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Damon Allen

unread,
Dec 29, 2016, 2:01:30 PM12/29/16
to Project Jupyter
And if by "files cached" you are referring to the notebook itself, my example was a new notebook.

Damon Allen

unread,
Dec 29, 2016, 2:09:17 PM12/29/16
to Project Jupyter

The problem also occurs under conda with a clean cache.

Mike Pacer

unread,
Dec 29, 2016, 2:48:20 PM12/29/16
to jup...@googlegroups.com
I think that Matthias meant that you should make sure to rebuild the json (if using an editable install) and to clear your browser's cache.

Damon Allen

unread,
Dec 29, 2016, 3:18:53 PM12/29/16
to Project Jupyter

Damon Allen

unread,
Dec 29, 2016, 6:33:37 PM12/29/16
to Project Jupyter

I found the problem.  If I start the notebook from the command line within and active Conda instance I get version 4.2.3 of the notebook server.  If I start it any other way I get Python 3.6 but using version 4.2.1 of the notebook server.

Matthias Bussonnier

unread,
Dec 30, 2016, 9:59:12 AM12/30/16
to jup...@googlegroups.com
I'm going to guess conda is not completely yet up-to date with the holidays.
And conda-forge does not have python 3.6 in stable channels yet.

let's give maintainers a couple of days to update stuff, and give
users change to submit PRs to get involved :-)
--
M
> --
> 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+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/e83ac199-77e5-4ee2-98ff-cd6224df7204%40googlegroups.com.

Damon Allen

unread,
Jan 28, 2017, 2:02:52 PM1/28/17
to Project Jupyter

The f-string problem is back.  I had it working using both Conda and Virtualenv but after recent updates f-strings are neither highlighted nor edited correctly.  I tried creating two new virtual machines with fresh installs of Ubuntu 16.04 and after updating and installing either Anaconda or using Virtualenv I wound up with the resulting highlighting problems.

Thomas Kluyver

unread,
Jan 29, 2017, 4:51:54 AM1/29/17
to Project Jupyter
Hi Damon,

Unfortunately, we reverted to an older version of Codemirror to deal with some issues on Safari, and that meant we lost the Python 3.6 syntax highlighting fixes. We've updated it again in master with a patch to fix the Safari problem, so it should be back in order for 5.0.

Thomas

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Damon Allen

unread,
Jan 29, 2017, 10:30:04 AM1/29/17
to Project Jupyter
Thomas,

What was the working version of Codemirror?  I would like to experiment with manually replacing it, in a virtual environment, to get the highlighting back.  I want to try this because it seems that version 5.0 will only be in beta next month and I've already been writing 3.6 code.

Damon

Damon Allen

unread,
Jan 29, 2017, 10:58:03 AM1/29/17
to Project Jupyter
Never mind.  I installed notebook version 4.3 and it's working again.  Thanks for letting me know what happened and again thanks to everyone working on Jupyter for all the hard work.


Damon

On Sunday, January 29, 2017 at 4:51:54 AM UTC-5, takowl wrote:
Hi Damon,

Unfortunately, we reverted to an older version of Codemirror to deal with some issues on Safari, and that meant we lost the Python 3.6 syntax highlighting fixes. We've updated it again in master with a patch to fix the Safari problem, so it should be back in order for 5.0.

Thomas
On 28 January 2017 at 19:02, Damon Allen <damon...@gmail.com> wrote:

The f-string problem is back.  I had it working using both Conda and Virtualenv but after recent updates f-strings are neither highlighted nor edited correctly.  I tried creating two new virtual machines with fresh installs of Ubuntu 16.04 and after updating and installing either Anaconda or using Virtualenv I wound up with the resulting highlighting problems.


--
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+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

MinRK

unread,
Jan 30, 2017, 10:31:32 AM1/30/17
to Project Jupyter
We found a fix for CodeMirror, and are planning to release 4.3.2 with just this patch shortly.

The most recent version of CodeMirror is 5.23.0.

-Min

To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages