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

Weird rendering of Jupyter notebook on Github #5724

Closed
NielsRogge opened this issue Sep 2, 2020 · 4 comments
Closed

Weird rendering of Jupyter notebook on Github #5724

NielsRogge opened this issue Sep 2, 2020 · 4 comments

Comments

@NielsRogge
Copy link

My Jupyter notebook renders a bit weird on Github: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/Custom_Named_Entity_Recognition_with_BERT.ipynb

Could it be that this is missing CSS?

However, on nbviewer, everything looks fine: https://nbviewer.jupyter.org/github/NielsRogge/Transformers-Tutorials/blob/master/Custom_Named_Entity_Recognition_with_BERT.ipynb

Am I doing something wrong here?

@liamross
Copy link

liamross commented Sep 2, 2020

I'm having the same issue, and it also seems that all image links are broken. I'm relatively new to Jupyter notebook, but after doing a quick search for other notebooks hosted on GitHub I've found many that seem to be configured almost exactly the same like this but are not broken.

@liamross
Copy link

liamross commented Sep 2, 2020

For context, here's my metadata:

{
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}

And here's the metadata of the working example:

{
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.4" // <-- DIFFERENT
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1 // <-- DIFFERENT
}

@zack-kimble
Copy link

I don't think it's related to the file, but the account. All of my .ipynb started rendering weird today, even ones that have not been changed in months.

Even a notebook in my fork of openai baselines has the same issue. It's up-to-date with the upstream master and last commit was in 2018.

My fork is misrendered: https://github.com/zack-kimble/baselines/tree/master/docs/viz
Upstream is fine: https://github.com/openai/baselines/blob/master/docs/viz/viz.ipynb

I think this is a github issue, not a jupyter issue. I contacted support there, but haven't heard anything

@kevin-bates
Copy link
Member

As colleagues have noted in other issues, Project Jupyter has no control over how notebooks render on GitHub. Please file a support request with GitHub if their notebook rendering is not working. We also recommended that you use nbviewer to view notebooks on Github.

cf. #3035, #3555, #4582, #5323

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants