Emacs Ipython Notes

登录

  • 使用 ein:login
  • 不要使用 ein:notebooklist-login, 会报错 http1.1 不支持

Login And open notebooklist buffer 登录已有 jupyter server

  • ein:notebooklist-login

Open a new notebook

  • C-c C-o ein:notebook-open

Open exist notebook

  • C-c C-o ein:notebook-open

    • 实测,无效

Rename current notebook

  • C-x C-w ein:notebook-rename-command

Save current notebook

  • C-x C-s ein:notebook-save-notebook-command

Close a notebook

  • C-c C-# ein:notebook-close

账户操作

登录

  • ein:login

登出

  • ein:stop

文件操作

新建

  • ein:notebooklist-new-notebook
  • ein:notebooklist-new-notebook-with-name

打开 ipynb 文件

  • ein:notebook-open – C-c C-o

打开任意文件

  • ein:file-open – C-c C-f
  • 作用

pubchempy ---- get chemical data from pubchem website

pubchempy.Compound

Object_Properties:

namecomment
'class',
'delattr',
'dict',
'dir',
'doc',
'eq',
'format',
'ge',
'getattribute',
'gt',
'hash',
'init',
'init_subclass',
'le',
'lt',
'module',
'ne',
'new',
'reduce',
'reduce_ex',
'repr',
'setattr',
'sizeof',
'str',
'subclasshook',
'weakref',
'_setup_atoms',
'_setup_bonds',
'aids',
'atom_stereo_count',
'atoms',
'bond_stereo_count',
'bonds',
'cactvs_fingerprint',
'canonical_smiles',SMILES
'charge',
'cid',
'complexity',
'conformer_id_3d',
'conformer_rmsd_3d',
'coordinate_type',
'covalent_unit_count',
'defined_atom_stereo_count',
'defined_bond_stereo_count',
'effective_rotor_count_3d',
'elements',
'exact_mass',
'feature_selfoverlap_3d',
'fingerprint',
'from_cid',
'h_bond_acceptor_count',
'h_bond_donor_count',
'heavy_atom_count',
'inchi',
'inchikey',
'isomeric_smiles',
'isotope_atom_count',
'iupac_name',IUPAC name
'mmff94_energy_3d',
'mmff94_partial_charges_3d',
'molecular_formula',Formula 分子式
'molecular_weight',摩尔质量
'monoisotopic_mass',
'multipoles_3d',
'pharmacophore_features_3d',
'record',
'rotatable_bond_count',
'shape_fingerprint_3d',
'shape_selfoverlap_3d',
'sids',
'synonyms',Synonyms
'to_dict',
'to_series',
'tpsa',
'undefined_atom_stereo_count',
'undefined_bond_stereo_count',
'volume_3d',
'xlogp'

pcp.get_cids(identifier, namespace='name')

eg: pcp.get_cids('1344-59-8')

Deepin

添加 ppa 软件源

教程

修改配置,/etc/lsb_release

1
2
3
4
5
6
7
8
9
#DISTRIB_ID=Deepin
#DISTRIB_RELEASE="15.10.1"
#DISTRIB_DESCRIPTION="Deepin 15.10.1 "
#DISTRIB_CODENAME=stable

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"

安装支持“add-apt-repository”

1
2
3
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo apt-get update

可能出现错误,GPG 密钥问题

W: GPG 错误:http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3FF0E01EEAAFC9CD
E: 仓库 “http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细

修复方法

1
2
sudo apt-key adv --recv-keys --keyserver keyserver.Ubuntu.com 3FF0E01EEAAFC9CD
# 其中“3FF0E01EEAAFC9CD”是上面GPG 报错产生的==>无法验证下列签名: NO_PUBKEY 3FF0E01EEAAFC9CD

正常安装软件

1
2
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-get update

开机自启动

文件位置

~/.config/autostart/my-rc-local.desktop