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

Julia no longer supported by github backend #7251

Closed
setrar opened this issue Feb 9, 2024 · 5 comments
Closed

Julia no longer supported by github backend #7251

setrar opened this issue Feb 9, 2024 · 5 comments
Labels
bug status:Needs Triage Applied to issues that need triage

Comments

@setrar
Copy link

setrar commented Feb 9, 2024

Description

For the past few months, I have been using github to display Jupyter Notebooks REPORT.ipynb using the Julia language.
The github backend worked like a charm until yesterday.
In the time being, I put a link to manually render the notebook on REPORT.ipynb on nbviewer.
Since Python Notebooks are working fine, I was wondering if it was just Julia causing the issue.
What would be the solution for Github to allow Julia back again on their platform?

Reproduce

  1. Click on REPORT.ipynb
  2. Expected behavior REPORT.ipynb on nbviewer
  3. Error: Jupyter Cells are no longer rendering Julia source code
@setrar setrar added bug status:Needs Triage Applied to issues that need triage labels Feb 9, 2024
@stevengj
Copy link

stevengj commented Feb 11, 2024

I just noticed the same thing with my notebooks, e.g. this one. In particular, code cells are no longer rendered correctly. This is especially noticeable with multi-line code cells, e.g.

image

in @setrar's link above — you can see that the line breaks are gone, and everything is smashed together. If you look at the raw .ipynb file (which is just text in JSON format), you can see that the underlying data contains line breaks:

  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "201cdbe8-df2f-4c2f-8f3b-9d92c5d05911",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "freq_offset_est (generic function with 1 method)"
      ]
     },
     "execution_count": 43,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "########################################################\n",
    "# Frequency Offset Estimator Function\n",
    "########################################################\n",
    "function freq_offset_est(sₚₛₛ, hₚₛₛ, Nf, m, 𝑓ₛ)\n",
    "\n",
    "    # Frequency offset estimator\n",
    "    Y = zeros(Float64, length(m));\n",
    "    L = length(hₚₛₛ)\n",
    "    t = 0:(1/𝑓ₛ):((L-1)/𝑓ₛ)\n",
    "\n",
    "    for i = 1:length(m)\n",
    "        # vec() denote the operation of reshaping sequence into a one-dimensional vector\n",
    "        # in Matlab it is the .' (per element transpose)\n",
    "        # (.)ˣ is the conjugate operation\n",
    "        Y[i] += abs2.( ∑( exp.(-2π * j * m[i] .*t ) .* (hₚₛₛ)ˣ .* vec(sₚₛₛ[Nf:(Nf + L -1)])));\n",
    "    end\n",
    "\n",
    "    A𝑓ₒ, 𝑓ₒ = argmax(Y) # Frequency Offset Ampitude, Index and adjusted signal\n",
    "\n",
    "    return m[𝑓ₒ], A𝑓ₒ, 𝑓ₒ, Y # m[𝑓ₒ] Index of the transmitted PSS in Hz\n",
    "end"
   ]
  },

which is why it renders fine on nbviewer.

@stevengj
Copy link

stevengj commented Feb 11, 2024

However, this is not a Jupyter issue — it should be reported to github, since it's a problem with their website.

@stevengj
Copy link

stevengj commented Feb 11, 2024

I've created a github support ticket: https://support.github.com/ticket/personal/0/2590265

Probably this issue can be closed here, since there is nothing the Jupyter project can do about it.

@setrar
Copy link
Author

setrar commented Feb 11, 2024

I've created a github support ticket: https://support.github.com/ticket/personal/0/2590265

Probably this issue can be closed here, since there is nothing the Jupyter project can do about it.

Hi @stevengj , I saw your reply on Julia Discourse. I am closing this ticket.

Thanks

@setrar setrar closed this as completed Feb 11, 2024
@setrar
Copy link
Author

setrar commented Feb 11, 2024

Issue related to github.com Backend https://support.github.com/ticket/personal/0/2589778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants