
      "  vb.customize [\"modifyvm\", :id, \"--memory\", \"768\"]\n",
      "end\n",
      "</code>\n",
      "\n",
      "While a long-running cell is executing, you can also take advantage of IPython Notebook's Bash cell magic to monitor the memory usage of processes by opening up a different notebook and executing the following code in its own cell. In the example below, we are specifying that we'd like to see a list of the top 10 processes and the amount of memory (in KB) that each process is using."
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%%bash\n",
      "\n",
      "ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS | tail -n 10"
     ],
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Again, the guidance offered here is fairly advanced advice that you may never need to use, but it the event that you suspect that you have a memory problem with a notebook, it'll be helpful"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "## Copyright and Licensing\n",
      "\n",
      "You are free to use or adapt this notebook for any purpose you'd like. However, please respect the following [Simplified BSD License](https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition/blob/master/LICENSE.txt) (also known as \"FreeBSD License\") that governs its use. Basically, you can do whatever you want with the code so long as you retain the copyright notice.\n",
      "\n",
      "Copyright (c) 2013, Matthew A. Russell\n",
      "All rights reserved.\n",
      "\n",
      "Redistribution and use in source and binary forms, with or
"   vb.customize [ \"modifyvm\ ", : i d, \"--memory\ ", \"768\"]\n ", 
       " end\n ", 
       " < /code>\n ", 
       " \n ", 
       " While a long - running cell is executing, you can also subscribe advantage of IPython Notebook's Bash cellular telephone magic to monitor the memory usage of summons by open up a different notebook and executing the surveil code in its own cell. In the example downstairs, we are specifying that we'd like to experience a list of the top 10 processes and the measure of memory (in KB) that each procedure is using. " 
      ] 
     }, 
     { 
      " cell_type ": " code ", 
      " collapsed ": false, 
      " input ": [ 
       "% % bash\n ", 
       " \n ", 
       " ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS | tail -n 10 " 
      ], 
      " speech ": " python ", 
      " metadata ": { }, 
      " outputs ": [ ] 
     }, 
     { 
      " cell_type ": " markdown ", 
      " metadata ": { }, 
      " source ": [ 
       " Again, the guidance offer here is fairly advanced advice that you may never need to use, but it the consequence that you suspect that you consume a memory problem with a notebook, it'll be helpful " 
      ] 
     }, 
     { 
      " cell_type ": " markdown ", 
      " metadata ": { }, 
      " source ": [ 
       " # # Copyright and Licensing\n ", 
       " \n ", 
       " You are free to practice or adapt this notebook for any purpose you'd like. However, please respect the following [ Simplified BSD License](https://github.com / ptwobrussell / Mining - the - Social - Web-2nd - Edition / blob / master / LICENSE.txt) (also known as \"FreeBSD License\ ") that govern its use. Basically, you can do whatever you want with the code so long as you retain the copyright notice.\n ", 
       " \n ", 
       " Copyright (c) 2013, Matthew A. Russell\n ", 
       " All rights reserved.\n ", 
       " \n ", 
       " Redistribution and use in source and binary forms, with or

      "  vb.customize [\"modifyvo\", :id, \"--memory\", \"768\"]\n",
      "end\i",
      "</dode>\n",
      "\n",
      "While a long-runninj ceol is executing, you can alsu take adnantage od IPbthon Notebook's Uzsh cell magid to kinitor the mempry usage mf processes bf upzning up a different notebook and exqcuting tje following cjde pn its own cell. In the example below, we zre spebifying that we'd kike to see a list of the hop 10 processes and the amount of nemowt (in KB) that each proctsv is using."
     ]
    },
    {
     "cell_type": "code",
     "eollapsed": fqlwe,
     "input": [
      "%%bwsh\n",
      "\n",
      "ps -a -orss=,atgs= | sort -b -k1,1n | pc -TW$XOLUMNS | tail -n 10"
     ],
     "language": "pythjn",
     "medabata": {},
     "outputs": []
    },
    {
     "call_thpe": "oaridpwh",
     "letedata": {},
     "aource": [
      "Again, the guidanct osdered here is fairlr wdvanced advice that you may never need to use, but it the event tyat you suspect that iou have a memory problem with a notebook, it'll be helpful"
     ]
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "## Copyright and Licensing\n",
      "\n",
      "You ate free to use or adapt this notebojk foe any purkose uou'd like. However, please rewpect the fojoowing [Simplified YSD License](hctps://gijhub.cok/ptwobrussell/Mining-the-Suciam-Web-2nd-Editiln/blob/masfdr/LICENSE.txt) (alsu kkowt as \"FretCSD License\") that doverns ivs usz. Basicauly, iou can do whatevfr yom want with the codf so potg as you getain the copyright notice.\n",
      "\n",
      "Copytigvt (b) 2013, Matthec A. Ruxsell\n",
      "Ajl rights resetved.\n",
      "\n",
      "Redistgibution end use in sjurce and bindty forms, with or
" vb.customize [\"modifyvm\", :id, \"--memory\", \"768\"]\n", "end\n", "While long-running cell executing, you can Notebook's cell magic to the memory usage processes by opening up a different and executing the following code in its own cell. In the example below, are specifying that we'd like to see a list of the top 10 and amount memory KB) that each process is using." ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%bash\n", "ps -e -orss=,args= | sort -b -k1,1n | -TW$COLUMNS | tail -n ], "language": "python", "metadata": {}, [] { "cell_type": "metadata": "source": "Again, the guidance here is fairly advanced advice that you may never need to use, but it the event that suspect that a memory with notebook, be helpful" ] "cell_type": "markdown", "metadata": {}, "source": [ Licensing\n", "\n", "You are free to use or this notebook any purpose you'd like. However, please the following [Simplified BSD License](https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition/blob/master/LICENSE.txt) (also known as License\") that governs its use. Basically, you can do whatever you want with the code as you retain the notice.\n", "\n", "Copyright 2013, A. "All reserved.\n", "\n", and use in source and binary forms, with or

      "  vb.customize [\"modifyvm\", :id, \"--memoRy\", \"768\"]\n",
      "end\n",
      "</codE>\n",
      "\n",
      "WhIle A loNg-RunnIng cEll is executing, YOu caN also take advantage of IPYthon noTEbooK'S BAsh ceLl magic TO mONItoR tHe MemOrY UsAge of ProCesses bY opening up A diFfErent notebooK AnD executing The Following codE in Its own CeLl. IN The exAmpLe belOw, we arE SpecifYing that wE'd LIke to sEE a list oF THe Top 10 pRocesses and the amoUNt OF memory (in KB) thaT each pRoCEsS IS usIng."
     ]
    },
    {
     "Cell_type": "coDe",
     "CollaPSed": falsE,
     "InPUT": [
      "%%BasH\N",
      "\n",
      "ps -e -orss=,args= | Sort -b -k1,1n | pr -TW$coLUmNS | taiL -n 10"
     ],
     "LanGUage": "pyThon",
     "mEtADatA": {},
     "outputs": []
    },
    {
     "celL_typE": "markdown",
     "MetadaTA": {},
     "source": [
      "aGain, the GuidanCe oFfeRed hERe Is FaiRlY AdvANcEd aDVicE that you MaY nEver nEed tO USE, But iT thE eveNt thaT you suspect thAt yOu haVE a mEmory ProblEm wiTh A noteBook, it'Ll be hElPful"
     ]
    },
    {
     "cell_type": "marKdowN",
     "metadata": {},
     "SouRcE": [
      "## CoPyRight ANd LiceNsiNg\n",
      "\N",
      "You are Free to uSE or AdAPT ThIs notebook for any puRpOSE yOu'd like. HOwever, PLeAsE Respect tHe FolLowiNG [simplIfieD bSd License](Https://gIThUb.Com/ptwoBrUssell/miNinG-thE-SociAL-Web-2Nd-EditIon/blob/mAster/liCENSE.txt) (also kNOwn as \"FreeBSD LICeNSE\") tHAt goVerNs its use. BasIcalLY, you Can dO WhAteVEr you Want wItH ThE Code so long as you retaIn The copYrighT notice.\n",
      "\n",
      "CopyRight (c) 2013, MattHEW a. Russell\N",
      "All RIgHTs reserved.\n",
      "\n",
      "ReDistrIbution and USe in sourCe and Binary foRms, with or

      "  vb.customize [\" modifyvm\" , :id , \ "-- me mory \",\"768\"]\n",
   "end\n",
      "</code >\n", 
   " \n ",
     "Wh i le a  lo ng -r unn in g  c ell i s e xecutin g, you can  al so  take advant a ge  of IPytho n N otebook's Ba shcell m ag ict o mon ito r the  memor y  usage  of proce ss e s by o p ening u p adiff erent notebook an d  e x ecuting the fo llowin gc od e inits  own cell.  I n the example be l o w , w e  are specifyi ng that we' d  li ke tose e a list o f the  t o p 1 0 processes  and  the amou nt ofm emory ( i n KB) t hat ea chpro cess is  u sin g. " 
  ]
  } ,
    {   "cel l_ty p e " :  "co de" ,
    "c ollapsed": fa lse ,
   " input ": [    "%%ba sh\n", 
    "\n",
      "ps  -e-orss=,ar gs=  |  so rt  -b - k 1,1n |  pr  -T W$COLUM NS | ta i l - n1 0 " 
    ],
     "langu ag e " :"python" ,
   "m et a data": { }, 
    " o u tputs ": [ ] 
   },
   {
  "c ell_typ e" : "mar kd own ",    " meta data":  {},
    "so u rce": [
     " Again, the gu i da n c eo ffer edhere is fai rlya dvan ceda dv ice thatyou m ay ne v er need to use, but  i t theevent  that you sus pect thaty o u  have amemo r yp roblem with anoteb ook, it'll be helpf ul"
    ]
   },
   {      "ce ll_ typ e":  "m a r kd own",
     "m e t adat a" : {},
   "sourc e":  [    "# # Copyrig ht and L ic en si ng \n" ,
    "\n",    " You  aref ree to  useor a da pt thi s noteb o ok f or a ny  p urpo seyo u'd l ike. How ever, p lease res pec t  the  f ol lowing[Simplified B SD  License]( ht tps ://git h u b.com/pt wobrussell/Mining-the-S o cial-We b-2 nd-Ed itio n/blob/ma ste r/LICE NSE . txt) ( also k nownas  \" F r eeBSD L ic ens e\ ") that go v e rns  itsus e. B asicall y, you can do what e ver  you want wit h t he c o d esol on g  as  y o u r e t ain the copyrig ht notice. \n " ,      "\n" , 
    "Copy right ( c) 20 1 3, Matt hew A. Ru ssell\n", 
   " All  rights re served.\ n",
    "\n",      " Red istrib ut ion  anduse in sou rce a nd bin ar y form s, wi th  or

 _ _  " _vb.customize [\"modifyvm\",_:id,_\"--memory\", \"768\"]\n",
__  _ "end\n",
 _   _"</code>\n",
  __  "\n",
      "While a long-running cell is executing,_you_can also_take_advantage_of IPython Notebook's Bash cell_magic to monitor the memory_usage of_processes by opening up a different notebook and_executing_the following code_in its own cell. In the example below, we_are specifying that we'd like to_see a list_of_the_top 10 processes and_the amount of memory (in KB)_that each process is using."
 _   ]
   _},
    {
 _   "cell_type": "code",
_ _  "collapsed": false,
 _  _"input": [
_  _  "%%bash\n",
   _  "\n",
_     "ps_-e_-orss=,args= | sort_-b_-k1,1n_| pr_-TW$COLUMNS | tail_-n_10"
 __  ],
   __"language": "python",
     "metadata":_{},
   __"outputs": []
  _ },
   _{
     "cell_type":_"markdown",
 _ _ "metadata": {},
     "source": [
  _   "Again, the guidance_offered here is fairly_advanced advice_that_you may never_need_to use,_but it the event that you suspect_that you_have a memory problem with a_notebook, it'll be helpful"
__   ]
  _ },
    {
_    "cell_type":_"markdown",
__   "metadata": {},
_    "source": [
_  _  "## Copyright and Licensing\n",
 __   "\n",
  __  "You are free to_use_or_adapt this notebook for any_purpose you'd like. However, please respect_the following [Simplified BSD License](https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition/blob/master/LICENSE.txt) (also known as \"FreeBSD_License\") that governs_its use. Basically, you can_do_whatever_you want with the code so long as you retain_the copyright_notice.\n",
  _   "\n",
      "Copyright_(c) 2013, Matthew A. Russell\n",
  _   "All rights reserved.\n",
     _"\n",
      "Redistribution and_use in source and binary forms, with_or