Comments (3)
Yep fixed if I add notebook.metadata.language_info.file_extension = ".ipynb"
from myst-nb.
I think the issue may lie with jupyter-sphinx
expecting the presence of notebook.metadata.language_info.file_extension
here:
https://github.com/jupyter/jupyter-sphinx/blob/970097e01c1b7af04372be202aed572de68d2d20/jupyter_sphinx/execute.py#L259
Below is the notebook is being read and, as you can see, it doesn't actually have this attribute.
{
"nbformat": 4,
"nbformat_minor": 2,
"metadata": {
"language_info": {
"name": "python",
"codemirror_mode": {
"name": "ipython",
"version": 3
}
},
"orig_nbformat": 2,
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"npconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": 3
},
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(use/api)=\n",
"\n",
"# Python API"
]
}
]
}
Note, the notebook was initially created by VS Code:
Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.
Version: 2020.2.64397
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python
from myst-nb.
raised at microsoft/vscode-python#10544
from myst-nb.
Related Issues (20)
- Tag a new release HOT 5
- `eval` role sometimes returns no outputs if previous cell ends with semicolon
- path is deprecated. HOT 4
- could you make a release ? HOT 17
- Code-blocks reference and glossary myst directives not working as expected HOT 4
- Tests which use the `sphinx_run` fixture are broken for `sphinx>7`; failing CI results HOT 1
- Add `append_css` config variable to docs HOT 1
- 1.0.0: pytest is failing in 4 units HOT 2
- 1.0.0: documentation build fails HOT 5
- Tables from code-output not properly rendered HOT 3
- GitHub Release and changelog entry for version 1.0 HOT 4
- Add support for custom kernel provision
- Fail to evaluate notebooks when compiling Jupyter Book: no running kernel HOT 2
- `%glue` magic command
- Using include directive, conf.py configuration is not picked up HOT 2
- Does not work with Sphinx's internationalization workflow HOT 3
- Dollar math in markdown cells is incorrectly rendered HOT 2
- No displayed output when embedding glued figures from another page/notebook HOT 1
- Skip empty output text blocks?
- Suppressing log during Sphi9nx document compilation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myst-nb.