An acquaeus solution of 1L contains 0.2 mol of acetic acid and 0.2 mol of sodium acetate ($K_\mathrm{a} = \pu{1.8e-5}$). Compute the pH. I'm trying to help my little sister in solving this exercise... however, a lot of years passed away since the time I attended the school... Our (unsuccessful)...
15 hours later…
4:03 PM
1 hour later…
5:06 PM
4
I have a bunch of structures and of each I would like to find the largest cyclic substructure. I'm not a chemist, so I don't know if there is a common terminology for this. I hope, I made it clear what I'm looking for. Example: Each structure on the top (1,2,3) as input should return the bottom ...
I try to replicate your code. I assume it is for working in a jupyter-notebook (my installation is Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] and 6.2.0 of jupyter).
It looks to me that I miss a detail to get this working again. If copy-pasting the first block you mention into the first cell, and run the code, errors are displayed instead of the formula.
From what I see (so far), rdkit as such seems to be recognized well by my installation of python, though:
Maybe the code shown by you is the result of multiple attempts in one notebook (after all, it is one of the benefits compared to typing the code into a «only text editor», thus no objection for this), and one earlier instruction not shown in your copy helped to let the part shared by you run smoothly.
The verbatim copy of the code snippet from RDKit Cookbook you refer to works fine, up and including the point of reporting the result of
print(GetRingSystems(mol))
. However, the subsequent second block # Draw molecule with atom index (see RDKitCB_0)
again yields error messages instead of the anticipated formula. Maybe I miss a detail in the installation (python and rdkit both installed via the synaptic package manager of Linux, so I speculated all dependencies would be resolved).
I freshly re-installed rdkit from the repositories of Linux Debian 11 / bullseye, branch testing. In the notebook, I run
kernel -> restart and clear output
followed by running the cells from the top to bottom again. The observation still is the same as before, i.e., no sketched formulae, but errors about the visual output to be generated. Huh ...
5:56 PM
Very early, the RDKit Cookbook mentions the visual output as .svg (instead of .png) may be an alternative safer for a display in a web browser. Doing this -- freshly restarted Python kernel -- however now yields both error messages and the formula with number annotations. No highlights / dots, though:
2 hours later…
8:28 PM
3
I make art using microscope and camera. I have heated ammonium sulphate that decomposes to ammonium hydrogen sulfate, melts then recrystalises to produce exceptionally beautiful birefiringent colours. I am interested in its typical crystaline structure as perhaps other chemicals with similar stru...
« first day (3292 days earlier) ← previous day next day → last day (1097 days later) »
Transcript for
Apr30
May '211
May2
The Periodic Table
Haikus are awesome / Chemistry's even better / So pull up a chair