paulovn / sparql-kernel

A Jupyter kernel to launch queries against SPARQL endpoints

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

magic function `%endpoint` not recognized by jupyter nbconvert

magdasalatka opened this issue · comments

While launching multiple notebooks with jupyter nbconvert, the %endpoit magic does not get recognized. The problem does not appear for launching one notebook only.

Setup:

  • python 3.9
  • sparqlkernel == 1.3.0

Jupyter setup:
jupyter core : 4.7.1
jupyter-notebook : 6.4.0
qtconsole : not installed
ipython : 7.24.1
ipykernel : 5.5.5
jupyter client : 6.2.0
jupyter lab : not installed
nbconvert : 6.0.7
ipywidgets : not installed
nbformat : 5.1.3
traitlets : 5.0.5

Code in sparql_notebook.ipynb:

%endpoint https://ld.integ.stadt-zuerich.ch/query

Issue
Command: jupyter nbconvert --execute --to=html notebooks/**.ipynb returns error
UsageError: Line magic function %endpoint not found.

Command: jupyter nbconvert --execute --to=html notebooks/sparql_notebook.ipynb executes correctly