Uploading Jupyter Notebook to Github with syntax highlighting - github

I uploaded my first Jupyter Notebook to Github here:
https://github.com/Athelian/OkCupid/blob/master/OkC%20Analysis.ipynb
But I cannot figure out how to get syntax highlighting to display in the preview after clicking the link. I've noticed others don't have this issue when they upload .ipynb files.
Is there any way to get it display like a real notebook?

Related

Why do my internal hyperlinks not work in my notebook when creating them remotely?

I have quite a large jupyter notebook I'm working on in VScode, while using the high performance computing facility (connected through SSH).
I am trying to create some internal hyperlinks so I can jump from my table of contents to a specific section in the notebook. However, this does not work.
Code I'm using to create the link:
[Summary](#Summary)
some other cells
## Summary
It does create a link, but clicking on it does not work in VScode. This one keeps me right at the top of the notebook, other links to sections further down bring me to seemingly random cells down my file. Also, when opening the notebook in Github, clicking the link brings me back to the folder where my notebook is located.
The same construction does work both in a local jupyter instance, and in vscode, when not connected to the HPC.
One difference I can think of is that I use miniconda on the HPC, and the full anaconda installation locally.
Are the links not supported in miniconda? Or is it something else?

how to display png images embedded in ipynb files in vscode notebooks using embedded data (not links to png files) .works fine jupyter lab

I have notebook created in jupyter lab in markdown cells such as
![image.png](attachment:c89a2fe3-a3ce-4e6b-b338-971a265b82dd.png)
The png file is part of the ipynb file and displays fine in jupyter lab but not in vscode. VScode just shows the following
Is there any settings (security related?) that is preventing this display

Jupyter Notebook in VS Code : inline input()?

I'm a student using VS Code to work on Jupyter Notebooks. I'm looking for a way to get the dialog pop up of an input("...") to appear inline instead (under the cell with all my prints, like it's done when using jupyter notebook in a browser).
Thanks,
Julien
Found my answer here : Show question/input in vscode jupyter notebook output
Spoiler : not possible, in VS Code you cannot show inputs under a cell of a jupyter notebook as it for output only.

Open in VS code Jupyter Notebook

I have an issue that I cannot solve. Im trying to open a big file in VS Code this one ,but when Im trying to open with the option: Jupyter:Open Jupyter Notebook nothing happens.
With others files works fine and opens in jupyter notebook automatically but not this one. I think maybe I touch something so now it doesn't work.
Could somebody help me please?

Folium maps not showing up on jupyter notebook uploaded on github

I have successfully rendered folium maps on my jupyter notebook by increasing the data limit when launching jupyter from anaconda prompt like this:
"jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10"
However, when I have uploaded the notebook to Github, rather than the map I had processed, I got a blank window.
How can I render these maps? Is it possible to increase the data_rate_limit on the notebook when it is being launched through github?
If there's any Javascript in Folium maps, it will not render on GitHub. For security reasons, GitHub does not execute any javascript while rendering notebooks.
From GitHub docs,
The interactive features of the notebook, such as custom JavaScript
plots, will not work in your repository on GitHub