feat: auto-import Jupyter Notebooks as blog posts
This commit is contained in:
BIN
content/post/blog-with-jupyter/featured.png
Normal file
BIN
content/post/blog-with-jupyter/featured.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
34
content/post/blog-with-jupyter/index.md
Normal file
34
content/post/blog-with-jupyter/index.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
title: Blog with Jupyter Notebooks!
|
||||
date: '2023-11-04'
|
||||
summary: Easily blog from Jupyter notebooks!
|
||||
---
|
||||
|
||||
|
||||
```python
|
||||
from IPython.core.display import Image
|
||||
Image('https://www.python.org/static/community_logos/python-logo-master-v3-TM-flattened.png')
|
||||
```
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
```python
|
||||
print("Welcome to Academic!")
|
||||
```
|
||||
|
||||
Welcome to Academic!
|
||||
|
||||
## Organize your notebooks
|
||||
|
||||
Place the notebooks that you would like to publish in a `notebooks` folder at the root of your website.
|
||||
|
||||
## Import the notebooks into your site
|
||||
|
||||
```bash
|
||||
pipx install academic
|
||||
academic import 'notebooks/**.ipynb' content/post/ --verbose
|
||||
```
|
||||
|
||||
The notebooks will be published to the folder you specify above. In this case, they will be published to your `content/post/` folder.
|
||||
BIN
content/post/blog-with-jupyter/output_1_0.png
Normal file
BIN
content/post/blog-with-jupyter/output_1_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user