-
Notifications
You must be signed in to change notification settings - Fork 568
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
nbconvert failed: 'tuple' object is not callable when ran from a container #1705
Comments
When I open a shell in the container: podman exec -it jupyter-lab /bin/bash I was able to execute nbconvert from the command-line and it seems to have worked. developer@jupyer-lab:~/jupyter$ jupyter nbconvert --to=html AzDO_SNOW_AzFuncApp.ipynb
[NbConvertApp] Converting notebook AzDO_SNOW_AzFuncApp.ipynb to html
[NbConvertApp] Writing 625009 bytes to AzDO_SNOW_AzFuncApp.html EDIT I can also launch the container and do the same thing without getting a shell inside of it. podman run --rm --volume="$(shell pwd):/home/developer/jupyter:Z" --workdir="/home/developer/jupyter" --userns=keep-id localhost/jupyterlab:latest nbconvert --to=html --no-input AzDO_SNOW_AzFuncApp.ipynb |
I am also seeing this across multiple operating systems (at least Windows 10, 11 and Mac) with new installations in my course. The issue seems directly tied to how Jupyter is launched. If we launch Jupyter via This seems to be a new issue, as I had > 150 install Jupyter lab in September and I do not think this issue was present (I will double check however) but now multiple students are reporting it. I should note - what we are seeing is not in a container - it is from installing Jupyter and its dependencies (including |
I can try that in my container and see if I yield any different results. If that's the case, then I may do that from now on. |
Same error appears when we try to export to executable script as well. |
Can you provide your command you're using, or explain what you're attempting to do? And how. |
Solved by: PR jupyter-server/jupyter_server#667 Rebuild the image, and re-run the Container image. |
The Description
I am attempting to run Jupyer Lab and nbconvert from within a container being access from the host via a Google Chrome browser. The container I am using is being built with:
The build logs look like:
I am able to run the container with the following command, accessing local files and saving them.
Then I click on the URL provided by the logs which opens Google Chrome on the host.
But then I attempt to export the Notebook as any filetype listed in the pop out menu. I get these errors in the log.
Screenshot of the error in the browser:
The Question
Am I missing a library, or something not in the path, or is there some other issue I'm not seeing?
The text was updated successfully, but these errors were encountered: