kiyoon / jupynium.nvim

Selenium-automated Jupyter Notebook that is synchronised with NeoVim in real-time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change kernel

kiyoon opened this issue · comments

  1. Add a command :JupyniumSelectKernel which will list all kernels you can switch to.
  • default cursor (selection) to the current kernel
  • Done in #38
  1. When starting sync by creating a new ipynb file, automatically choose the appropriate kernel.
  • It will only work if the neovim and Jupynium runs on the same computer.
  • Don't change kernel and use the default ipython3 if it can't find the match.
  • Respect filetype.
  • Choose based on conda_env_path if conda environment is activated
  • Done in #39
  1. Add a command :JupyniumRestartKernel

Useful javascript functions:

  • Jupyter.kernelselector.kernelspecs
  • Jupyter.notebook.kernel.name
  • Jupyter.kernelselector.set_kernel('conda-env-jupyter-r')
  • Jupyter.notebook.kernel.restart()
  • Jupyter.kernelselector.kernelspecs['conda-env-jupynium-py'].spec.language