Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook syntax highlighting not working

I recently installed Anaconda 3 and after a few minor issues I was able to run Jupyter Notebook, but syntax highlighting is not working at all. Everything else seems to be working fine.

I had Anaconda 2 installed before, deleted all it's directories (with jupyter's dirs along with it) prior to downloading and installing Anaconda 3.

I don't think this forced-uninstall of Anaconda 2 is the reason for this problem because Anaconda 3 files should all be contained in its installation, right?

like image 342
Victor Valente Avatar asked Mar 01 '19 20:03

Victor Valente


People also ask

Does Jupyter notebook have syntax highlighting?

Summary. Jupyter notebook displays do not use the syntax highlighting theme in Preferences to display code blocks.

How do I enable syntax suggestions in Jupyter notebook?

Enable autocomplete feature To enable code autocomplete in Jupyter Notebook or JupyterLab, you just need to hit the Tab key while writing code. Jupyter will suggest a few completion options. Navigate to the one you want with the arrow keys, and hit Enter to choose the suggestion.

How do you highlight text in a Jupyter notebook?

1 Answer. Show activity on this post. Then a button with a lightbulb icon will appear on your Jupyter notebook toolbar. Pressing that button will highlight the selected lines (or, if there is no selection, the current line) in the current code cell.

How do I fix Jupyter notebook not running?

Jupyter doesn't load or doesn't work in the browser Try disabling any browser extensions and/or any Jupyter extensions you have installed. Some internet security software can interfere with Jupyter. If you have security software, try turning it off temporarily, and look in the settings for a more long-term solution.


1 Answers

I'm not sure if it will help, but let it be here for history. I use Anaconda 3 on windows 10 (64), Jupyter syntax always worked (Google Chrome browser). Today I launched QtConsole before Notebook. Any actions inside QtConsole were performed AFTER I opened Notebook and saw a lack of syntax highlight. So it doesn't matter what exactly I did inside the console. I've noticed that problem was fixed after the following sequence: I closed QtConsole and I've restarted Kernel via upper menu (Kernel => Restart and Clear Output).

like image 129
Roman Voronov Avatar answered Oct 08 '22 09:10

Roman Voronov