You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build and deploy functions are throwing HTTP 404 errors on JupyterHub. The error is getting thrown by the notebook_file_name method when attempting to parse the notebook file URL from the iPython server.
Thanks to Yaron's assistance, a temporary work around was provided by using the filename as the parameter %nuclio build <filename>.ipynb <flags>.
def notebook_file_name(ikernel):
"""Return the full path of the jupyter notebook."""
# Check that we're running under notebook
if not (ikernel and ikernel.config['IPKernelApp']):
return
kernel_id = re.search('kernel-(.*).json',
ipykernel.connect.get_connection_file()).group(1)
servers = list_running_servers()
for srv in servers:
query = {'token': srv.get('token', '')}
url = urljoin(srv['url'], 'api/sessions') + '?' + urlencode(query)
for session in json.load(urlopen(url)):
from notebook.notebookapp import list_running_servers
from urllib.parse import urljoin, urlencode
from urllib.request import urlopen
for srv in list_running_servers():
query = {'token': srv.get('token', '')}
url = urljoin(srv['url'], 'api/sessions') + '?' + urlencode(query)
print(srv)
print(url)
print(urlopen(url).read())
Hello,
The build and deploy functions are throwing HTTP 404 errors on JupyterHub. The error is getting thrown by the
notebook_file_name
method when attempting to parse the notebook file URL from the iPython server.Thanks to Yaron's assistance, a temporary work around was provided by using the filename as the parameter
%nuclio build <filename>.ipynb <flags>
.returns:
For reference: the suffix
/user/..
is from running Jupyter via JupyterHub. We currently use the helm deployment on Kubernetes.Package versions:
Nuclio version: 0.7.3
JupyterHub: 0.9.4
JupyterLab version: 1.0.4
Jupyter Notebook: 6.0.0
The text was updated successfully, but these errors were encountered: