Multicore and multithread on Ipython Notebook
<p>I am currently using the <b>threading</b> function in python and got the following:</p>

<pre><code>In [1]:
import threading
threading.activeCount()

Out[1]:
4
</code></pre>

<p>Now on my terminal, I use <b>lscpu</b> and learned there are 2 threads per core and I have access to 4 cores:</p>

<pre><code>kitty@FelineFortress:~$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 60
Stepping:              3
CPU MHz:               800.000
BogoMIPS:              5786.45
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
NUMA node0 CPU(s):     0-7
</code></pre>

<p>Hence, I should have a lot more than 4 threads to access. Is there a python function I can use to increase the number of cores I am using (with example) to get more than 4 threads? Or even something to type on the terminal when launching ipython notebook like below:</p>

<pre><code>ipython notebook n_cores=3
</code></pre>