Skip to content
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

Jupyter Notebbok 101 #1

Open
jbenrod opened this issue Jul 5, 2021 · 4 comments
Open

Jupyter Notebbok 101 #1

jbenrod opened this issue Jul 5, 2021 · 4 comments

Comments

@jbenrod
Copy link

jbenrod commented Jul 5, 2021

Hi Mike. I am working on the 4th edition of a textbook for Wiley and want to include in it Jupyter notebooks for mathematical calculations. Is there a way to change the appearance of the code in the notebooks such that color is avoided and everything shows in black and white?

Best regards,

Jaime Benitez

@driscollis
Copy link
Owner

I would make the cell into a Markdown cell. Then you can add code blocks using triple back-ticks. As long as you don't set what syntax is in the code block, it will be in black-and-white.

Here is what the Markdown would look like:

no_syntax_highlighting

And here is what the cell looks like when you run it:

no_syntax_highlighting_run

@jbenrod
Copy link
Author

jbenrod commented Jul 6, 2021 via email

@driscollis
Copy link
Owner

If you want Python code to execute, then you would put the Python code into a regular Code cell (the default) in the Notebook. Jupyter automatically adds syntax highlighting to Python code in Code cells.

The example I showed in my screenshots is a Markdown cell.

You can change the cell type in the toolbar at the top of the Notebook

@jbenrod
Copy link
Author

jbenrod commented Jul 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants