Running code review on jupyter laptop (nee ipython)

I was curious how others do code reviews on jupyter laptops. Commenting on raw json seems complicated and making comments directly on the laptop, it looks like it might be messy.

+4
source share
2 answers

We usually refer to the version on nbviewer (clean code is still great in clean code) and you can really use json file comments. How fair is this for discussion?

We are discussing with http://hypothes.is/ to add a comment method to nbviewer.

+3
source

, python .py.

Download as Python

.

JSON, , input ('\n'):

    {
     "cell_type": "code",
     "collapsed": false,
     "input": "from PIL import Image\nimport numpy as np\"\n\ncol = Image.open(\"cat-tied-icon.png\")\ngry = col.convert('L')\ngrarray = np.asarray(gry).copy()\ngrarray[grarray < 128] = 0    # Black\ngrarray[grarray >= 128] = 255 # White\n\nbw = grarray\nimfile = Image.fromarray(bw)\nimfile.save(\"result_bw.png\")",
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 17
    },

, ( , ). , , , .

+2

All Articles