# hexo-jupyter-notebook

> Use jupyter notebook like *.ipynb in Hexo.

Latest version **0.0.3** (published 2017-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install hexo-jupyter-notebook
pnpm add hexo-jupyter-notebook
yarn add hexo-jupyter-notebook
bun add hexo-jupyter-notebook
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-09-30 |
| First published | 2017-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | qiliux |
| Maintainers | qiliux |
| Keywords | hexo, jupyter, notebook |

## Links

- npm: https://www.npmjs.com/package/hexo-jupyter-notebook
- Repository: https://github.com/qiliux/hexo-jupyter-notebook
- Homepage: https://github.com/qiliux/hexo-jupyter-notebook#readme
- Issues: https://github.com/qiliux/hexo-jupyter-notebook/issues
- npm.io page: https://npm.io/package/hexo-jupyter-notebook

## Dependencies (2)

- [co-fs](https://npm.io/package/co-fs.md) ^1.2.0
- [co-exec](https://npm.io/package/co-exec.md) ^1.1.0

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2017-09-30
- 0.0.1 (beat) — 2017-09-30
- 0.0.2 — 2017-09-30

## README

# hexo-jupyter-notebook

Use jupyter notebook like *.ipynb in Hexo.

## Installation


``` bash
$ npm install hexo-jupyter-notebook --save
```

## Usage
Check if pandoc is installed (pandoc --version); if needed, install:
``` bash
sudo apt-get install pandoc
``` 
Or mac
``` bash
brew install pandoc
```

make sure the python you use have isntalled `nbconvert`, if not , use 

``` bash
pip install nbconvert
```

1. Enable post asset by adding this line in your `_config.yml`: `post_asset_folder: true`
2. put your jupyter file in post asset directory. You can use `ln -s` , `cp source direction` and etc. 
3. Make sure load jquery 2 (jquery 3 will error. I will fix at soon.) before you use `asset_jupyter`

``` html
<script text='text/javascript' src='/path/to/jquery.js'></script>
{% asset_jupyter python_path jupyter_file_name %}


eg : (i use next theme , so the jquery is in lib/jquery/index.js)
<script text='text/javascript' src='/lib/jquery/index.js'></script>
{% asset_jupyter /data1/anaconda3/bin/python crash-mxnet-ndarray.ipynb %}

```

## future
Maybe it's a little diffcult to use.. But it's work. You can see example at [my blog](http://blog.qiliuxiansheng.com)

1. The jupyter notebook width is fixed for general usage. Maybe it should be auto-responsive.
2. This assums that you must use post_asset_folder. I think it's a good choice for you to manage your blog and notebook files. For linux and mac user, you are encouraged to use `ln -s ` command to link you jupyter notebook file to blog. 


## License

MIT

---
_Source: https://npm.io/package/hexo-jupyter-notebook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
