Q_Id
int64
337
49.3M
CreationDate
stringlengths
23
23
Users Score
int64
-42
1.15k
Other
int64
0
1
Python Basics and Environment
int64
0
1
System Administration and DevOps
int64
0
1
Tags
stringlengths
6
105
A_Id
int64
518
72.5M
AnswerCount
int64
1
64
is_accepted
bool
2 classes
Web Development
int64
0
1
GUI and Desktop Applications
int64
0
1
Answer
stringlengths
6
11.6k
Available Count
int64
1
31
Q_Score
int64
0
6.79k
Data Science and Machine Learning
int64
0
1
Question
stringlengths
15
29k
Title
stringlengths
11
150
Score
float64
-1
1.2
Database and SQL
int64
0
1
Networking and APIs
int64
0
1
ViewCount
int64
8
6.81M
44,830,486
2017-06-29T16:24:00.000
1
0
1
0
python,windows,anaconda,uninstallation
44,830,542
2
false
0
0
Because the program isn't actually installed, you can honestly just throw all of the files needed TO install Anaconda into your trash or recycle bin. If you go to "Programs and Features" and you don't see Anaconda, then those other files and folders can just be thrown away.
2
1
0
I recently tried installing Anaconda for my Windows 10 laptop. Unfortunately, this didn't seem to work, as there seems to be no actual Anaconda application on my computer, rather just a collection of folders and files on my desktop. I think this problem can be attributed to me downloading the 32-bit version of Anaconda...
Anaconda installation problems - how to uninstall Anaconda (Windows)
0.099668
0
0
2,038
44,830,486
2017-06-29T16:24:00.000
0
0
1
0
python,windows,anaconda,uninstallation
44,958,269
2
false
0
0
There also is a Uninstall-Anaconda.exe directly in your Anaconda folder. But I'm not sure if it does something more than just deleting the folder/files.
2
1
0
I recently tried installing Anaconda for my Windows 10 laptop. Unfortunately, this didn't seem to work, as there seems to be no actual Anaconda application on my computer, rather just a collection of folders and files on my desktop. I think this problem can be attributed to me downloading the 32-bit version of Anaconda...
Anaconda installation problems - how to uninstall Anaconda (Windows)
0
0
0
2,038
44,831,726
2017-06-29T17:41:00.000
8
0
1
0
python,list,dictionary,set,tuples
44,831,853
1
true
0
0
A list is a sequence of elements in a specific order. You can access elements with a numerical index, e.g. the_list[3]. The time taken for several operations such as testing if the list contains an element is O(n), i.e. proportional to the length of the list. A tuple is basically an immutable list, meaning you can't ad...
1
1
0
I have confused with lists, tuples, sets and dictionaries someone give me clear cut idea. Give me the difference from your understanding don't give the text book definitions.
What is the difference between lists,tuples,sets and dictionaries?
1.2
0
0
11,110
44,835,126
2017-06-29T21:16:00.000
2
0
0
0
python,file-handling
44,835,396
3
true
0
0
csv is very inefficient for storing large datasets. You should convert your csv file into a better suited format. Try hdf5 (h5py.org or pytables.org), it is very fast and allows you to read parts of the dataset without fully loading it into memory.
2
1
1
I have a huge file csv file with around 4 million column and around 300 rows. File size is about 4.3G. I want to read this file and run some machine learning algorithm on the data. I tried reading the file via pandas read_csv in python but it is taking long time for reading even a single row ( I suspect due to large ...
Reading file with huge number of columns in python
1.2
0
0
1,206
44,835,126
2017-06-29T21:16:00.000
3
0
0
0
python,file-handling
44,835,474
3
false
0
0
Pandas/numpy should be able to handle that volume of data no problem. I hope you have at least 8GB of RAM on that machine. To import a CSV file with Numpy, try something like data = np.loadtxt('test.csv', dtype=np.uint8, delimiter=',') If there is missing data, np.genfromtext might work instead. If none of these meet y...
2
1
1
I have a huge file csv file with around 4 million column and around 300 rows. File size is about 4.3G. I want to read this file and run some machine learning algorithm on the data. I tried reading the file via pandas read_csv in python but it is taking long time for reading even a single row ( I suspect due to large ...
Reading file with huge number of columns in python
0.197375
0
0
1,206
44,835,358
2017-06-29T21:35:00.000
1
0
1
0
python,list,pandas
60,381,721
2
false
0
0
%who_ls DataFrame This is all dataframes loaded in memory as a list all_df_in_mem = %who_ls DataFrame
1
3
1
I've done a lot of searching and can't find anything related. Is there a built-in function to automatically generate a list of Pandas dataframes that I've created? For example, I've created three dataframes: df1 df2 df3 Now I want a list like: df_list = [df1, df2, df3] so I can iterate through it.
Pandas - List of Dataframe Names?
0.099668
0
0
5,562
44,836,123
2017-06-29T22:49:00.000
1
0
0
0
r,conda,python-3.6,rpy2,libiconv
44,935,654
2
true
0
0
I uninstalled rpy2 and reinstalled with --verborse. I then found ld: warning: ignoring file /opt/local/lib/libpcre.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libpcre.dylib ld: warning: ignoring file /opt/local/lib/liblzma.dylib, file was built for x86_64 ...
2
2
1
I would like to use some R packages requiring R version 3.4 and above. I want to access these packages in python (3.6.1) through rpy2 (2.8). I have R version 3.4 installed, and it is located in /Library/Frameworks/R.framework/Resources However, when I use pip3 install rpy2 to install and use the python 3.6.1 in /Librar...
Installing rpy2 to work with R 3.4.0 on OSX
1.2
0
0
1,095
44,836,123
2017-06-29T22:49:00.000
0
0
0
0
r,conda,python-3.6,rpy2,libiconv
53,839,320
2
false
0
0
I had uninstall the version pip installed and install from source python setup.py install on the download https://bitbucket.org/rpy2/rpy2/downloads/. FWIW not using Anaconda at all either.
2
2
1
I would like to use some R packages requiring R version 3.4 and above. I want to access these packages in python (3.6.1) through rpy2 (2.8). I have R version 3.4 installed, and it is located in /Library/Frameworks/R.framework/Resources However, when I use pip3 install rpy2 to install and use the python 3.6.1 in /Librar...
Installing rpy2 to work with R 3.4.0 on OSX
0
0
0
1,095
44,838,519
2017-06-30T04:17:00.000
5
0
0
0
python,django,django-templates,slice
44,838,616
2
true
1
0
slice:"3" and slice:":x" are both same as they will return first 3 elements from the list but if you use slice:"2:x" then it will leave the 2 items from the first of the list and take from 3rd item till the number you mentioned in the x variable, its basically taking a part
1
5
0
I have a myList list with e.g. 5 elements, but I want to slice it in template by using command: {% for item in myList|slice:"3" %} or this command: {% for item in myList|slice:":3" %} What's the difference between slice:"x" and slice:":x"? (I don't have currently access to machine with django installed but I'm curious)
The difference between django slice filter usages
1.2
0
0
544
44,839,204
2017-06-30T05:32:00.000
0
0
1
0
python,django,web-deployment,pythonanywhere
44,839,307
4
false
1
0
Try to type "python3 --version". This can work on linux, but I am not sure whether it works on pythonanywhere
3
2
0
I am trying to deploy my Django application on pythonanywhere through manual-configuration. I selected Python 3.6.When I opened the console and type "python --version" It is showing python 2.7 instead of 3.6. How can I change this? Please help me.
how can I change default python version in pythonanywhere?
0
0
0
3,626
44,839,204
2017-06-30T05:32:00.000
2
0
1
0
python,django,web-deployment,pythonanywhere
44,850,691
4
true
1
0
Python 3.6 is available as python3.6 in a console on PythonAnywhere.
3
2
0
I am trying to deploy my Django application on pythonanywhere through manual-configuration. I selected Python 3.6.When I opened the console and type "python --version" It is showing python 2.7 instead of 3.6. How can I change this? Please help me.
how can I change default python version in pythonanywhere?
1.2
0
0
3,626
44,839,204
2017-06-30T05:32:00.000
2
0
1
0
python,django,web-deployment,pythonanywhere
55,050,163
4
false
1
0
to set your default python version from 2.7 to 3.7 run the command below $ alias python=python3 that's it now check the version $ python --version it should be solved
3
2
0
I am trying to deploy my Django application on pythonanywhere through manual-configuration. I selected Python 3.6.When I opened the console and type "python --version" It is showing python 2.7 instead of 3.6. How can I change this? Please help me.
how can I change default python version in pythonanywhere?
0.099668
0
0
3,626
44,841,470
2017-06-30T07:56:00.000
3
0
1
0
python,windows,python-3.x,windows-10,anaconda
54,505,325
30
false
0
0
I figured out the reason as to why: 1-There seems to be no navigator icon 2-When conducting the above steps of running the "anaconda-navigator" command in prompt (whether cmd or Anaconda) it yields "anaconda navigator is not recognized as an internal or external command" This was very frustrating to me as I'd installed...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0.019997
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
59,745,764
30
false
0
0
In my case; it was available in the anaconda folder in "All App" from main menu
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
4
0
1
0
python,windows,python-3.x,windows-10,anaconda
48,361,910
30
false
0
0
Yet another option which worked in my case on Windows 10: Try uninstalling your previous installation, restart the system and run the installation again. Make sure you don't start any programs before installing Anaconda. You will find the installation finishes without prompting any kind of errors. Type in Anaconda in ...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0.02666
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
-2
0
1
0
python,windows,python-3.x,windows-10,anaconda
50,551,832
30
false
0
0
I too faced a similar issue when I was not able to find the Anaconda Navigator Desktop app in the start menu. But do not worry , Go to start Menu and Type Anaconda Navigator. Now within the apps menu you will find anaconda navigator with its icon. Click on that. After clicking you will find a command prompt dialog ope...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
-0.013333
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
52,259,184
30
false
0
0
I had a similar issue today where only the prompt was available after installation. Finally solved this by un-installing my regular python installation and then install anaconda(anaconda 3 v5.2.0, with python 3.6).
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
-1
0
1
0
python,windows,python-3.x,windows-10,anaconda
53,242,842
30
false
0
0
On windows 10, I faced the same error - only Anaconda Prompt was showing in the startup menu. What I did is i re-installed Anaconda and selected install for all users of the pc (in my initial installation I have installed only for current user).
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
-0.006667
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
2
0
1
0
python,windows,python-3.x,windows-10,anaconda
54,160,061
30
false
0
0
I faced the same problem on Windows 10. As soon as I cleared my Path variable from edit environment variables option, the icon started to appear. It was occurring because I had previously installed python 3.6.1 on my computer and added it to my path variable as C:\Python36;C:\Python36\DLL; and so on. There isn't any ne...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0.013333
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
1
0
1
0
python,windows,python-3.x,windows-10,anaconda
54,844,122
30
false
0
0
Try restarting the system! You will be able to find the navigator once you restart the system after installation.
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0.006667
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
-2
0
1
0
python,windows,python-3.x,windows-10,anaconda
69,821,480
30
false
0
0
From the Start menu select Anaconda Prompt. type anaconda-navigator. If Anaconda is installed properly, Anaconda Navigator will open.
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
-0.013333
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
54,540,532
30
false
0
0
Uninstall your Anaconda, delete the folder where it was. Then reinstall it.
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
60,499,128
30
false
0
0
For people from Brazil There is a security software called Warsaw (used for home banking) that must be uninstalled! After you can install it back again. After thousand times trying, installing, uninstalling, cleanning-up the regedit that finally solved the problem.
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
66,907,772
30
false
0
0
First Run This Command conda config --set auto_activate_base True Then Run This Command anaconda-navigator.
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
66,932,291
30
false
0
0
Turn off your internet connection, then open your terminal and type anaconda-navigator or type anaconda prompt in the search bar and double click on the anaconda prompt. If anaconda is opened, then you can turn on your Wi-Fi.
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
54,260,187
30
false
0
0
I also have the issue on windows when i am unable to find the anaconda-navigator in start menu. First you have to check anaconda-navigator.exe file in your anaconda folder if this file is present it means you have installed it properly otherwise there is some problem and you have to reinstall it. Before reinstalling th...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
1
0
1
0
python,windows,python-3.x,windows-10,anaconda
71,910,521
30
false
0
0
Make sure to run the installer as admin In my case (Windows 11) it was a permission problem. Make sure to run the installer as administrator. You can check this by modification of the path in the installer process. Further steps to handle the problem: Uninstall your actual anaconda version. Delete old Data found in:...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0.006667
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
-1
0
1
0
python,windows,python-3.x,windows-10,anaconda
60,691,959
30
false
0
0
What finally worked for me was: Uninstalling Anaconda Deleting all files that has "conda" in them - most of them should be located in: C:\Users\Admin Delete especially the "condarc" file. Reboot Installed 32-bit installer (even though my system is 64-bit) and reboot Finally worked. I have not yet re-tried with 64-bi...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
-0.006667
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
0
0
1
0
python,windows,python-3.x,windows-10,anaconda
57,794,408
30
false
0
0
This is what I did Reinstall anacoda with ticked first check box Remember to Restart
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
0
0
0
249,576
44,841,470
2017-06-30T07:56:00.000
14
0
1
0
python,windows,python-3.x,windows-10,anaconda
55,661,947
30
false
0
0
How I solved this issue: 1. Be connected to the internet. 2. Open the Anaconda Prompt (looks like a regular command window). If you installed the .exe in your /name/user/ location you should be fine, if not navigate to it. Then start an environment. conda info --envs Then run conda install -c anaconda anaconda-navig...
18
41
0
Anaconda (listed as "Python 3.6.0 (Anaconda 4.3.1 64 bit)" ) is in my programs and features list, but there is seeming no Anaconda Navigator desktop app, as their seems to be no icon on my desktop and I am unable to search for it through "Start". Could this be because I have the 32-bit version of Anaconda downloaded an...
Anaconda Installed but Cannot Launch Navigator
1
0
0
249,576
44,843,175
2017-06-30T09:30:00.000
0
0
0
0
python,random-forest,h2o
44,852,474
1
false
0
0
you could download and take a look at the POJO which lists all the thresholds used for the model h2o.download_pojo(model, path=u'', get_jar=True, jar_name=u'')
1
0
1
I have an h2o random forest in Python. How to extract for each tree the threshold of each features ? My aim is to implement this random forest in c++ Thanks !
How to get the random forest threshold from an h2o random forest object
0
0
0
235
44,843,864
2017-06-30T10:05:00.000
0
0
0
1
python,jenkins,flask,celery
44,846,900
2
false
1
0
Couple of points below to consider to compare between celery and jenkins. Celery is specifically designed and built for running resource intensive tasks in background whereas jenkins is a more general tool for automation. jenkins is built on java so native integration is there although plugins are available whereas ce...
1
0
0
I have a flask application where i submit tasks to celery(worker) to execute it. so that i can get the webpage back after submitting. Can i achieve same if i submit the task to Jenkins instead? Just wanted an opinion why would i use celery when i can ask Jenkins to schedule/execute the job through Jenkins API ? still g...
Flask async job/task submit to Celery or Jenkins
0
0
0
1,256
44,849,883
2017-06-30T15:21:00.000
3
0
1
0
python,jupyter
45,017,248
1
false
0
0
The jupyter console command will provide you with an interpreter environment that you can experiment with code running within the Jupyter environment outside of a notebook. It's not exactly what you're looking for but may provide a better environment for testing and developing code that you can then paste into the appr...
1
1
0
I just started using jupyter for a python project. I constantly find myself adding an extra cell just to perform some basic try&error debugging. This way I omit the whole code of the cell is being executed but it still doesn't feel like the right way to do it. Does Jupyter provide something like a static kernel termina...
Debug window in jupyter?
0.53705
0
0
138
44,850,538
2017-06-30T15:55:00.000
2
0
0
1
python,google-app-engine,google-cloud-datastore
44,851,226
1
false
1
0
The logs are telling you exactly what the problem is. The backup you did today at 9:27AM already has the name "datastore_backup_2017_06_30". To do another, it must have a unique name. Try adding a time to the backup filename, or change it to "datastore_backup_2017_06_30_2".
1
0
0
Been trying for the last two hours and it keeps telling me that the job already exists: From the logs: Backup "datastore_backup_2017_06_30" already exists. (/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/datastore_admin/backup_handler.py:853) Traceback (most recent call last): File "/bas...
Can't do manual backup of ndb datastore from datastore admin
0.379949
0
0
19
44,850,709
2017-06-30T16:03:00.000
1
0
1
0
python,python-3.x
44,850,852
3
false
0
0
In Python you can represent types as objects themselves. So yes, they're type objects. For every type there is an object representing that type, like int. It's an instance of the type itself. It's like .getClass() and Class<?> objects in Java: "some string".getClass() == String.class. Java doesn't treat functions a...
1
1
0
When I read Python in a Nutshell, I saw a "type object", "class object", "function object", "module object", .... Does a "xxx object" mean an instance of type "xxx"? For example, does a type object mean an instance of type type? For example, is int a type object? is a specific class a type object? does a class object...
Meaning of "a type/class/function/module/... object"?
0.066568
0
0
96
44,851,959
2017-06-30T17:24:00.000
0
1
0
0
python,scapy
44,997,621
1
true
1
0
You can directly answer HTTP requests to pages different to that specific webpage with HTTP redirections (e.g. HTTP 302). Moreover, you should only route packets going to the desired webpage and block the rest (you can do so with a firewall such as iptables).
1
0
0
I have built a MITM with python and scapy.I want to make the "victim" device be redirected to a specific page each time it tried to access a website. Any suggestions on how to do it? *Keep in mind that all the traffic from the device already passes through my machine before being routed.
Python : Redirecting device with MITM
1.2
0
1
141
44,852,137
2017-06-30T17:37:00.000
1
0
0
0
python,numpy,tensorflow,tensor
44,855,284
2
false
0
0
You can either provide the value of the datatype you want your resulting tensor to be or to cast a tensor afterwards. tf.fill((3, 3), 0.0) # will be a float 32 tf.cast(tf.fill((3, 3)), tf.float32) # also float 32 The first one is better because you use less operations in the graph
1
1
1
I am trying to use the tf.fill() method to create a tensor of different data types(float16,float32,float64) similar to what you can do with numpy.full(). would tf.constant() be a suitable substitution? or should I create my fill values to be of the data type I want them to be then plug it into the value holder inside t...
using tensorflow fill method to create a tensor of certain datatype
0.099668
0
0
2,486
44,853,206
2017-06-30T18:58:00.000
3
0
1
0
python-3.x,ipython,pycharm
51,451,407
2
false
0
0
Go to run --> edit configurations... towards the button you'll see a checkbox that says "run with python console" make sure its checked
2
2
0
By default, all scripts in PyCharm seem to execute in a separate python interpreter called "Run", which, as far as I can make out, is pretty much independent of the IPython console running alongside. Now, to execute any snippet of the script after the whole thing has been run, I can copy-paste into the Run pane, but th...
PyCharm: Executing the script in the console rather than 'run'
0.291313
0
0
1,565
44,853,206
2017-06-30T18:58:00.000
0
0
1
0
python-3.x,ipython,pycharm
44,854,484
2
false
0
0
try to edit the run config, via run -> edit configuration. And check the path of the working directory or the script directory.
2
2
0
By default, all scripts in PyCharm seem to execute in a separate python interpreter called "Run", which, as far as I can make out, is pretty much independent of the IPython console running alongside. Now, to execute any snippet of the script after the whole thing has been run, I can copy-paste into the Run pane, but th...
PyCharm: Executing the script in the console rather than 'run'
0
0
0
1,565
44,856,214
2017-07-01T00:04:00.000
6
0
0
1
python,airflow,apache-airflow
44,878,992
4
false
0
0
In my understanding, AIRFLOW_HOME should link to the directory where airflow.cfg is stored. Then, airflow.cfg can apply and set the dag directory to the value you put in it. The important point is : airflow.cfg is useless if your AIRFLOW_HOME is not set
4
35
0
I have defined a DAG in a file called tutorial_2.py (actually a copy of the tutorial.py provided in the airflow tutorial, except with the dag_id changed to tutorial_2). When I look inside my default, unmodified airflow.cfg (located in ~/airflow), I see that dags_folder is set to /home/alex/airflow/dags. I do cd /home/...
How to add new DAGs to Airflow?
1
0
0
34,425
44,856,214
2017-07-01T00:04:00.000
17
0
0
1
python,airflow,apache-airflow
44,856,401
4
true
0
0
I think the reason for this is because you haven't exported AIRFLOW_HOME. Try doing: AIRFLOW_HOME="/home/alex/airflow/dags" airflow list_dags. If that's not working than do two steps export AIRFLOW_HOME="/home/alex/airflow/dags" airflow list_dags I believe this should work. Give it a go?
4
35
0
I have defined a DAG in a file called tutorial_2.py (actually a copy of the tutorial.py provided in the airflow tutorial, except with the dag_id changed to tutorial_2). When I look inside my default, unmodified airflow.cfg (located in ~/airflow), I see that dags_folder is set to /home/alex/airflow/dags. I do cd /home/...
How to add new DAGs to Airflow?
1.2
0
0
34,425
44,856,214
2017-07-01T00:04:00.000
1
0
0
1
python,airflow,apache-airflow
55,957,328
4
false
0
0
The issue is that you might have two airflow configs existing in your directories, so check for /root/airflow/dags and if yes you require to change the dags_folder path in both airflow.cfg s
4
35
0
I have defined a DAG in a file called tutorial_2.py (actually a copy of the tutorial.py provided in the airflow tutorial, except with the dag_id changed to tutorial_2). When I look inside my default, unmodified airflow.cfg (located in ~/airflow), I see that dags_folder is set to /home/alex/airflow/dags. I do cd /home/...
How to add new DAGs to Airflow?
0.049958
0
0
34,425
44,856,214
2017-07-01T00:04:00.000
1
0
0
1
python,airflow,apache-airflow
69,834,752
4
false
0
0
I might be using the latest airflow, the command has changed. What works for me is: export AIRFLOW_HOME="~/airflow" Then run airflow dags list
4
35
0
I have defined a DAG in a file called tutorial_2.py (actually a copy of the tutorial.py provided in the airflow tutorial, except with the dag_id changed to tutorial_2). When I look inside my default, unmodified airflow.cfg (located in ~/airflow), I see that dags_folder is set to /home/alex/airflow/dags. I do cd /home/...
How to add new DAGs to Airflow?
0.049958
0
0
34,425
44,856,964
2017-07-01T02:56:00.000
1
0
0
0
python,machine-learning,tensorflow,neural-network
44,857,779
1
true
0
0
The tf.contrib.learn.DNNClassifier class has a method called predict_proba which returns the probabilities belonging to each class for the given inputs. Then you can use something like, tf.round(prob+thres) for binary thresholding with the custom parameter thres.
1
0
1
I'm working on a binary classification problem and I'm using the tf.contrib.learn.DNNClassifier class within TensorFlow. When invoking this estimator for only 2 classes, it uses a threshold value of 0.5 as the cutoff between the 2 classes. I'd like to know if there's a way to use a custom threshold value since this mig...
Using a custom threshold value with tf.contrib.learn.DNNClassifier?
1.2
0
0
476
44,857,149
2017-07-01T03:47:00.000
0
1
1
0
python,dvd,dvd-burning,cddvd
44,857,380
1
false
0
0
Long story short, anything is possible when it comes to computers. Long story, unless you can find someone who has developed the code to interface with the drivers specific to the computer and such than it would take a lot of work to do. If I understand what you want to do it would likely end up becoming a whole progra...
1
0
0
Is it possible to control the path etched by the laser and the speed of the motor through python? I'm trying to not use a microcontroller or disassemble the drive. I'm essentially trying to do LightScribe on the bottom of a DVD without LightScribe. It's a long story.
Controlling DVD Drive using Python
0
0
0
281
44,857,970
2017-07-01T06:19:00.000
3
0
0
0
python,random,pixel
44,858,027
4
false
0
0
I'd suggest making a list of coordinates of all non-zero pixels (by checking all pixels in the image), then using random.shuffle on the list and taking the first 100 elements.
1
4
1
I have a binary image of large size (2000x2000). In this image most of the pixel values are zero and some of them are 1. I need to get only 100 randomly chosen pixel coordinates with value 1 from image. I am beginner in python, so please answer.
how to get random pixel index from binary image with value 1 in python?
0.148885
0
0
3,545
44,859,948
2017-07-01T10:35:00.000
0
0
1
0
python-3.x,ubuntu,pip,virtualenv
44,860,049
2
true
0
0
If you created the virtual environment with --system-site-packages, the virtual environment has access to the global site-packages modules. You need to re-create the virtual environment without --system-site-packages option if you don't want that.
1
2
0
In my python program (run by a virtualenv using python3.5), I need to use the Pillow library to process an image. ImportError: No module named 'Pillow' tells me that Pillow is not installed in the virtualenv. But, when I run pip install Pillow, I get back: Requirement already satisfied: Pillow in /usr/lib/python3/di...
Confusion with virtualenvs and Python packages
1.2
0
0
180
44,860,570
2017-07-01T11:49:00.000
1
0
0
0
multithreading,python-3.x,selenium-webdriver,multiprocessing
44,864,054
1
false
1
0
The main factor in CPython for choosing between Threads of Processes is based on your type of workload. If you have a I/O bound type of workload, where most of your application time is spent waiting for data to come in or to go out, then your best choice is using Threads. If, instead, your application is spending great...
1
0
0
I need to use selenium for a scraping job with a heap javascript generated webpages. I can open several instances of the webdriver at a time and pass the websites to the instances using queue. It can be done in multiple way.s though. I've experimented with both the Threading module and the Pool- and Process-ways from t...
Threading or multiprocessing for webscraping with selenium
0.197375
0
1
632
44,861,989
2017-07-01T14:24:00.000
1
0
0
0
python,excel,pandas
44,862,175
2
false
0
0
This can not be done in pandas. You will need to use other library to read the xlsx file and determine what columns are white. I'd suggest using openpyxl library. Then your script will follow this steps: Open xlsx file Read and filter the data (you can access the cell color) and save the results Create pandas datafra...
1
5
1
I have an xlsx file, with columns with various coloring. I want to read only the white columns of this excel in python using pandas, but I have no clues on hot to do this. I am able to read the full excel into a dataframe, but then I miss the information about the coloring of the columns and I don't know which columns...
Reading an excel with pandas basing on columns' colors
0.099668
0
0
7,328
44,862,432
2017-07-01T15:12:00.000
0
1
0
1
python,apache,.htaccess,httpd.conf,macos-sierra
44,862,745
3
false
1
0
1, 2. Ok. Are .htaccess files allowed in /etc/apache2/httpd.conf ? <Directory "widget.py"> — I think you want <File "widget.py">. Look into error log — what is the error?
2
1
0
I am trying to create a python script (widget.py) that will get a JSON feed from an arbitrary resource. I can't get the python script to execute on localhost. Here are the steps I have followed: In etc/apache2/httpd.conf I enabled LoadModule cgi_module libexec/apache2/mod_cgi.so Restarted Apache sudo apachectl restart...
Executing python script on Apache in MacOS Sierra
0
0
0
3,573
44,862,432
2017-07-01T15:12:00.000
4
1
0
1
python,apache,.htaccess,httpd.conf,macos-sierra
44,865,681
3
false
1
0
Got it to work. Here are the steps that I followed: In etc/apache2/httpd.conf I uncommented: LoadModule cgi_module libexec/apache2/mod_cgi.so Restarted Apache sudo apachectl restart List itemAdded a .htaccess file to my directory with the following contents: Options ExecCGI AddHandler cgi-script .py Order allow,deny...
2
1
0
I am trying to create a python script (widget.py) that will get a JSON feed from an arbitrary resource. I can't get the python script to execute on localhost. Here are the steps I have followed: In etc/apache2/httpd.conf I enabled LoadModule cgi_module libexec/apache2/mod_cgi.so Restarted Apache sudo apachectl restart...
Executing python script on Apache in MacOS Sierra
0.26052
0
0
3,573
44,863,610
2017-07-01T17:18:00.000
1
0
0
0
python,matplotlib,latex
44,864,201
1
true
0
0
I was importing the seaborn package after setting the matplotlib rcParams, which overwrote values such as the font family. Calling rcParams.update(params) after importing seaborn fixes the problem.
1
0
1
I am using matplotlib.rc('text', usetex=True); matplotlib.rc('font', family='serif') to set my font to serif with LaTeX. This works for the tick labels, however the plot title and axis lables are typeset using the sans-serif CMS S 12 computer modern variant. From what I have found on the web, most people seem to have t...
Matplotlib is incorrectly rendering axis labels in sans-serif when using LaTeX
1.2
0
0
184
44,866,952
2017-07-02T02:23:00.000
1
0
0
1
python,linux
44,866,968
1
false
0
0
So long as the state is not shared in any way between the different interpreters executing the scripts (re each user running the script gets a different Python interpreter process), there should be no problem. However if there is some shared context (such as a log file each process is simultaneously reading/writing fro...
1
0
0
I have Python scripts in Linux Server. I have multiple scripts in directory example /home/python/scripts all users use same username "python" to login linux server. If multiple users are run same script is there any issues? Like if one user start execute one script before finishing this script another user also started...
Python script to run same script by multiple users
0.197375
0
0
917
44,869,453
2017-07-02T09:44:00.000
0
0
0
0
python,server,broker
44,876,882
1
false
0
0
Yes. I should be possible if you have control over application layer. When opc ua layer gives control to read or write a variable node, just before returning control to opc ua layer do all the necessary action to publish data using any broker. I hope this will help you to solve problem.
1
0
0
Is there any way to combine an OPC-UA Server with a Mosquito Broker? I would like to start a server (OPC UA) which can publish different variables etc. which will be handled by a Broker (Mosquito). Therefore I would like to use the "Python FreeOpcUa" implementation and the official Mosquito Broker.
Is it possible to combine "Python FreeOpcUa" with "Mosquito Broker"?
0
0
0
53
44,869,606
2017-07-02T10:05:00.000
0
1
0
0
python,web-scraping,codeship
45,087,672
1
false
0
0
Just noticed your question here on SO and figured I'd answer it here as well as your support ticket (so others can see the general answer). We're actively working on a brand new API that will allow access to both Basic and Pro projects. The target for general availability is currently at the beginning of Aug '17. We'll...
1
0
0
I couldn't find any API to configure my codeship project :( I have multiple repositories, and would like to allow the following steps programatically: List repositories of my team create a new repo pipeline (for each microservice I have a seperate repo) Edit pipeline steps scripts for newly created project (and for mu...
configuring codeship via code
0
0
1
30
44,870,168
2017-07-02T11:11:00.000
0
0
0
0
beautifulsoup,python-3.6
44,872,494
1
false
1
0
Just noticed - you're importing from BeautifulSoup. Try from bs4 import *
1
0
0
I can import BeautifulSoup using Python 2.7 but not when I try using Python 3.6, even though BeautifulSoup claims to work on both? Sorry this is my first question so apologies if it's trivial or if I haven't used the proper conventions. from BeautifulSoup import * Traceback (most recent call last): Fil...
Python 3.6 Beautiful Soup - Attribute Error
0
0
1
289
44,870,294
2017-07-02T11:26:00.000
6
0
0
0
python,macos,selenium,webdriver,selenium-chromedriver
53,889,254
2
false
0
0
You might need to install it with : brew cask install chromedriver or brew install chromedriver and then do which chromedriver You will get the relevant path.
1
2
0
I am trying to get selenium to use chromedriver on mac. I have downloaded the mac version of chromedriver and added it to the same folder as my python file. I am then using: driver = webdriver.Chrome() however it doesn't seem to be opening. This works fine in windows but just not working on mac. anyone got any ideas? T...
Selenium chromedriver in relative path for mac and python
1
0
1
15,055
44,871,312
2017-07-02T13:26:00.000
1
0
1
0
python-3.x,anaconda,spyder
44,871,723
1
false
0
0
(Spyder developer here) Please use the Variable Explorer to visualize Numpy arrays and Pandas DataFrames. That's its main purpose.
1
0
1
Hi on running a code in the console I am getting the display as: runfile('C:/Users/DX/Desktop/me template/Part 1 - Data Preprocessing/praCTICE.py', wdir='C:/Users/DX/Desktop/me template/Part 1 - Data Preprocessing') and on viewing a small matrix it is showing up as array([['France', 44.0, 72000.0], ['Spa...
In spyder how to get back default view of running a code in Ipython console
0.197375
0
0
272
44,873,156
2017-07-02T16:56:00.000
1
0
0
0
python,tensorflow,language-model,sequence-to-sequence,perplexity
44,875,134
1
true
0
0
This does not make a lot of sense to me. Perplexity is calculated as 2^entropy. And the entropy is from 0 to 1. So your results which are < 1 do not make sense. I would suggest you to take a look at how your model calculate the perplexity because I suspect there might be an error.
1
0
1
In Tensorflow, I'm getting outputs like 0.602129 or 0.663941. It appears that values closer to 0 imply a better model, but it seems like perplexity is supposed to be calculated as 2^loss, which implies that loss is negative. This doesn't make any sense.
How can the perplexity of a language model be between 0 and 1?
1.2
0
0
298
44,878,653
2017-07-03T05:59:00.000
0
0
1
0
python,process
44,878,817
1
false
0
0
Short answer: it runs on a different process. When you instantiate a Process object, after calling the method start() the current process is going to fork and the new process is going to execute the method run(). If you have a system with multiple cores, you might indeed take advantage of this parallelism. Note: the di...
1
0
0
I am performing multiprocessing in Python. In Python, there are two classes, Pool and Process, to perform multiprocessing. The class Pool executes the processes on multiple cores depending on the availability of the cores. I wanted to know whether the Process class executes the processes in parallel on multiple cores o...
Does process package from multiprocessing in python executes the processes on multiple cores?
0
0
0
42
44,881,128
2017-07-03T08:40:00.000
0
1
0
0
python,shell,flask
44,884,067
3
false
1
0
Installing wheel using: pip install wheel works, not sure what influenced it.
1
0
0
i have a problem, if you have any idea how it may be fixed, please help) I have a project, which run by the .sh file, and this .sh refers to a python file.py which uses the Flask for html-reports. When i run the file.py (for simplify with 'hello world'), but when i run the .sh file, it writes the error "ImportError: No...
Run Flask from run.sh
0
0
0
986
44,882,144
2017-07-03T09:31:00.000
0
1
0
1
python,python-2.7,shell
44,884,687
2
false
0
0
Is there any python/Shell script to make memory 100% usage for 20 minutes. To be technical, we need to be precise. 100% usage of the whole memory by a single process isn't technically possible. Your memory is shared with other processes. The fact that the kernel is in-memory software debunks the whole idea. Plus, a p...
1
0
0
Is there any python/Shell script to make memory 100% usage for 20 minutes. Memory size is very big 4TB. Operating System Linux. Python version 2.7
shell/Python script to utilize memory 100% for 20 mins
0
0
0
259
44,882,981
2017-07-03T10:13:00.000
0
0
0
1
python,c
44,883,166
2
false
0
0
What previous answers miss is your question about how to trigger at a specific time, e.g. 9pm. You can use cron for this. It's a *nix utility that executes arbitrary commands on a time schedule you specify. You could set cron to run your C program directly, or to launch a Python wrapper that then starts your C execut...
1
0
0
I have a .c file and this file has to be executed only at a particular time interval say 9pm. So, please let me know if there is any possibility of achieving this via python scripting.
Python script to execute a C program at particular time interval
0
0
0
140
44,883,116
2017-07-03T10:19:00.000
0
0
0
0
python,queue,multiprocessing,pytables
44,884,458
1
false
0
0
It's really hard to help you without code. But I just think if you want to find "thin" places in your code you have to write log of it. As I understood one iteration of your worker has to create 268 Series that are made as columns in final dataframe. If these Series are the same shape, then it seems that the issue in q...
1
0
1
Before I state my question, let me put my constraint - I can't post the code as it is related to my job and they don't allow it. So this is just a survey query to see if somebody has seen similar issues. I have a python multiprocessing set up where the workers do the work and put the result in a queue. A special writer...
python multiprocessing (using pytable) misses some results from the queue in the final output
0
0
0
54
44,884,515
2017-07-03T11:34:00.000
0
0
1
0
python,pyinstaller,praw
44,884,826
4
false
0
0
I'll recommend to look at pyenv or virtualenv. Activate these env's and install the praw module here. This should work.
1
0
0
I wanted to pack my script using pyInstaller. I run pyinstaller file.py -F, file is created successfully, but when running I get ImportError: No module named 'praw'. So I created new file containing only import praw and run pyinstaller file.py -F --hidden-import=praw but still get the same error when running. I was una...
pyInstaller: ImportError: No module named 'praw'
0
0
0
1,128
44,892,009
2017-07-03T18:32:00.000
0
1
0
0
python,google-sheets,google-api
51,015,293
1
false
0
0
I'm assuming you have some python asset that you would like to use to modify data on Google Sheets. If that's the case, then I think your best option is to use Google APIs to access Google Sheets from python. You can use any of the following two tutorials by Twilio to achieve that. If you want to add the python asset ...
1
3
0
What is the easiest way to run a python script from google sheets, or alternatively execute the python script when the google sheets opens?
Execute python script from within google sheets
0
0
0
2,539
44,892,762
2017-07-03T19:30:00.000
0
0
1
0
python-2.7,pycharm,anaconda,python-3.5
44,929,820
2
false
0
0
Thank you for your answers and help. After I've completely removed Anaconda and all the side packages, and reinstalled everything from scratch, the method I mention in the question worked fine and without any setbacks. Although it's frustrating to reinstall everything from scratch, it solved the problem. For some reaso...
1
0
0
I've been trying to set a virtual environment for some time now, but with no success. I read many topics regarding this manner, but couldn't find a solution for my problem. I am running: Windows 7 Pycharm Community Edition 2017.1.4 Anaconda 2 Python 2.7.13 I am trying to set up an environment of Python 3.5.3 - Anaco...
Pycharm - Anaconda2 - Windows7 - py35 environment - SDK error
0
0
0
1,000
44,894,250
2017-07-03T21:47:00.000
2
0
0
0
python,math,statistics,volatility
44,894,389
1
true
0
0
You could use the standard deviation of the list divided by the mean of the list. Those measures have the same units so their quotient will be a pure number, without a unit. This scales the variability (standard deviation) to the size of the numbers (mean). The main difficulty with this is for lists that have both posi...
1
2
1
Wonder if anyone can help. I have a set of lists of numbers, around 300 lists in the set, each list of around 200 numbers. What I wish to calculate is the "relative stability" of each list. For example: List A: 100,101,103,99,98 - the range is v small - so stable. List B: 0.3, 0.1, -0.2, 0.1 - again, v small range, so...
Measure Volatility or Stability Of Lists of Floating Point Numbers
1.2
0
0
361
44,899,119
2017-07-04T07:04:00.000
0
0
0
0
python,pandas
44,899,478
3
false
0
0
Instead of df1.merge(...) try: pd.merge(left=df1, right=df2, on ='e', how='inner')
1
1
1
Sorry I have a very simple question. So I have two dataframes that look like Dataframe 1: columns: a b c d e f g h Dataframe 2: columns: e ef I'm trying to join Dataframe 2 on Dataframe 1 at column e, which should yield columns: a b c d e ef g h or columns: a b c d e f g h ef However: df1.merge(df2, how = 'inner', on ...
Merging 2 dataframes on Pandas
0
0
0
87
44,902,885
2017-07-04T10:02:00.000
0
0
1
1
python,azure,pyspark,jupyter-notebook,azure-hdinsight
44,903,656
3
false
0
0
Have you tried installing using pip? In some cases where you have both Python 2 and Python 3, you have to run pip3 instead of just pip to invoke pip for Python 3.
1
1
1
I would like to install python 3.5 packages so they would be available in Jupyter notebook with pyspark3 kernel. I've tried to run the following script action: #!/bin/bash source /usr/bin/anaconda/envs/py35/bin/activate py35 sudo /usr/bin/anaconda/envs/py35/bin/conda install -y keras tensorflow theano gensim but the p...
how to install python package on azure hdinsight pyspark3 kernel?
0
0
0
2,656
44,905,197
2017-07-04T11:48:00.000
-1
0
0
0
python-2.7,scapy,pcap
62,105,352
2
false
0
0
As you can read everywhere Scape is SUPER slow for pcap files >10MB. I made a couple of tools always using dpkt. Just to give you an idea. Having a 670MB file using dpkt splitting the specific bytes I need compared to full fletched scapy (reading raw packages (the fastest solution with scapy)) is: dpkt needs 150s (6GB ...
1
0
0
I am trying to build a new layer using scapy. I want to read a pcap file and store each packet in an array so that I can access all the information inside the packet using the index of the array.
Is there a way I can read packets from a pcap file into an array?
-0.099668
0
0
982
44,905,309
2017-07-04T11:53:00.000
1
0
1
0
python,type-conversion
44,905,485
2
false
0
0
From the design of the language, I have the impression so far that it values flexibility more than purity and therefore the above behavior seems kind of non-typical. Your impression is wrong. Python is dynamically-typed, but also strongly-typed, meaning that the type of an object is always fixed. If you need a differe...
1
1
0
This is probably a bad title but what I mean by it is the following: Since Python is dynamically-typed, why do certain functions insist on being used with certain data types only and do not handle the conversion themselves internally if necessary? What problems could that lead to? Examples: startswith(): Takes both st...
Why isn't Python fexlibe when it comes data-types of function arguments?
0.099668
0
0
66
44,907,749
2017-07-04T13:49:00.000
0
0
1
1
python
44,908,141
2
true
0
0
Found a solution to my problem... I needed to use: set path=%path%;C:\Python27 This switched interpreter. Cheers
1
0
0
I've been developing a set of scripts in PyCharm using C:/Python27/python.exe interpreter... I'm creating a batch file and then running all of the scripts through this file from the cmd shell however the shell is not recognizing most modules because it is using the wrong interpreter (path for anaconda instead)... How d...
Choosing specific python interpreter in the shell
1.2
0
0
185
44,911,066
2017-07-04T16:59:00.000
2
0
0
0
python,postgresql,azure,psycopg2
44,915,875
1
true
1
0
You don't need the specific pg_config from the target database. It's only being used to compile against libpq, the client library for PostgreSQL, so you only need the matching PostgreSQL client installed on your local machine. If you're on Windows I strongly advise you to install a pre-compiled PostgreSQL. You can just...
1
0
0
Trying to install a postgresql database which resides on Azure for my python flask application; but the installation of psycopg2 package requires the pg_config file which comes when postgresql is installed. So how do I export the pg_config file from the postgresql database which also resides on azure? Is pg_config all ...
How to retrieve the pg_config file from Azure postgresql Database
1.2
1
0
164
44,913,520
2017-07-04T20:17:00.000
1
0
0
0
wxpython
44,931,999
1
true
0
1
The GIL is automatically released and reacquired whenever a call is made to a wx C++ function or method. This is probably a bit of overkill as there are a number of things that are quick and won't ever block and it might be more efficient to not release/reacquire the GIL, but this approach ensures that we don't miss d...
1
0
0
I was wondering the interaction that wxPython has with running things on separate cores and if wxPython releases the GIL when running. I've assumed that when I kick off some command which takes a while that wxPython starts up the wxWidgets c++ code which runs on multiple cores and somehow releases the GIL until the ta...
Does wxpython run on separate process and release the GIL (Global Interpreter Lock)?
1.2
0
0
59
44,914,376
2017-07-04T21:49:00.000
3
0
0
1
python,bash,python-2.7
44,914,400
1
true
0
0
Use os.getcwd - returns current working directory. Requires import os. Also its slightly unclear, what exactly do you want. You dont really need current working directory in python - every relative path in python will be interpreter as if starting in current directory. So simply use relative paths (in linux those are o...
1
0
0
I'm on linux, I wrote a python script that is located in lets say /home/python/main.py. Every time I run it, it asks for a path using raw_input. I run it from a different place every time. say I run it from /home/test like this python /home/python/main.py from terminal. How can I give it the path I'm currently in, if p...
How to find the user current path?
1.2
0
0
44
44,915,500
2017-07-05T00:27:00.000
1
0
0
0
python,scikit-learn,regression,polynomials
47,966,038
1
false
0
0
Your question is ill defined. If you want, say, 14 features of 34 possible, which 14 should that be? In your place, I would generate a redundant number of features and then would use a feature selection algorithm. It would be a sparse model (like Lasso) or a feature elemination algorithm (like RFE).
1
1
1
I've been using scikit learn, very neat. Fitting a polynomial curve through points (X-Y) is pretty easy. If I have N points, I can chose a polynomial of order N-1 and the curve will fit the points perfectly. If my X vector has several dimension, in scikit-learn I can build a pipeline with a PolynomialFeatures and a Lin...
Python - Fitting a polynomial (multi-dimension) through X points
0.197375
0
0
300
44,916,352
2017-07-05T02:55:00.000
1
0
1
0
python,function
44,916,473
1
false
0
0
If you do a = f() a become what the function f returns. It can be anything, even a function too as long as f() returns a function. If you do a = f and f is a function already defined , then a always be a function as long as you don't re-define a.
1
0
0
Assume f() is defined. In the statement a = f(), a is always a function. Why it is wrong?
Assume f() is defined. In the statement a = f(), a is always a function.
0.197375
0
0
3,467
44,920,110
2017-07-05T07:50:00.000
0
1
1
0
python,python-2.7,python-3.x
45,315,275
1
true
0
0
Seems that pytraj was linked to the wrong libcpptraj Try ldd /home/supriyo/software/amber16/lib/python2.7/site-packages/pytraj/cpp_options.so and delete the libcpptraj.so from that output. It's better to open and issue in github.com/amber-md/pytraj
1
0
0
I am getting the following error when I am tring to import pytaj in python. ImportError: /home/supriyo/software/amber16/lib/python2.7/site-packages/pytraj/cpp_options.so: undefined symbol: _Z15SupressErrorMsgb?
How do I import pytraj in Python?
1.2
0
0
277
44,923,993
2017-07-05T10:42:00.000
0
0
0
0
python,python-3.x,tensorflow,gpu
44,964,036
1
true
0
0
Fresh install is the key but there are some important points: 1. Install CUDA 8.0 toolkit 2. Install cuDNn 5.1 version (not 6.0) 3. Install from source(bazel) and configure to use ensorflow with CUDA Above steps worked for me! Hope it helps anyone.
1
0
1
I am trying to use tensorflow with gpu and installed CUDA 8.0 toolkit and cuDNn v5.1 libraries as described in nvidia website. But when I try to import tensorflow as module in python3.5, it does not load cuDNn libraries (outputs nothing, just loads tensorflow module). And I do not observe speed in processing (same spee...
Tensorflow GPU cuDNn: How do I load cuDDN libraries?
1.2
0
0
784
44,925,309
2017-07-05T11:45:00.000
5
0
1
0
python
44,925,605
1
true
0
0
The syntax ./hello.py is typically used on Unix-like systems (including Linux and OSX); it requires two things: that hello.py has proper rights (execute bit set) that the first line of hello.py is #!/usr/bin/python (or similar, depending on location of your Python interpreter) The other form - python hello.py - does ...
1
1
0
Say Suppose, the name of my python script file is hello. How the script can be executed ? Sometimes, I see that most of the python scripts are executed by (python hello.py) and sometimes (./hello.py). Which one of these executing is true? If both are same, why it is mentioned as different commands?
How to run python script?
1.2
0
0
142
44,925,443
2017-07-05T11:51:00.000
0
0
1
0
python,windows,python-2.7,pip,paramiko
44,925,521
2
false
0
0
Can't you just copy the source and execute "pip install ." in the directory ?
1
1
0
I have a machine which is a Windows server, where installation by downloading packages from internet is prohibited. Before that I tried to set up Python 2.7 on my windows machine with internet.I have downloaded and installed pysftp, paramiko, bcrypt, cryptography, pyasn, PyNaCl etc. and also have installed Microsoft vi...
How to install packages in Python 2.7 without internet connections in Windows machine?
0
0
0
4,055
44,926,214
2017-07-05T12:24:00.000
0
0
1
1
python,command-line,installation,atom-editor
44,926,753
2
false
0
0
press ctrl+, to open your preferences go to install search for script press install
1
1
0
I struggle with a very basic problem in the Atom editor. I simply want to run a python file but am unable to just open a command line or console. In other forums I read, I need to install Script. I tried to do it in Packages -> Settings View. But if I type 'script' in the install packages field, only this response appe...
Installing Script in Atom
0
0
0
4,217
44,928,429
2017-07-05T14:02:00.000
2
0
1
0
python,regex
44,928,605
2
false
0
0
Just use the regular expression for "in a list of values", and return False if there's a match.
1
0
0
I want to search for a string that doesn't exist in a list of strings by using regex. Is it possible to make a regex for that case without using negative lookahead?
Regular expression for "not in a list of values" without negative lookahead
0.197375
0
0
91
44,931,415
2017-07-05T16:20:00.000
14
0
1
0
python,setuptools,packaging,setup.py
44,931,563
2
false
0
0
python setup.py egg_info will write a package_name.egg-info/requires.txt file which contains the dependencies you want.
1
9
0
I have a third-party package which has a setup.py file that calls setup() in the standard way, passing test_requires, install_requires and extras_require. (It does not use a requirements.txt file.) I am running a Windows machine (on Appveyor) and pip install is notoriously poor on Windows with some of the packages. I w...
How can I ask setup.py to list dependencies?
1
0
0
4,508
44,932,495
2017-07-05T17:24:00.000
1
0
1
0
python,file,oop,pickle
44,952,297
1
false
0
0
Text files don't have meta data in the same way that a jpg file does. A jpeg file is specifically designed to have ways of including meta data as extra structured information in the image. Text files aren't: every character in the text file is generally displayed to the user. Similarly, every thing in a CSV file is p...
1
0
0
I am writing a function that is supposed to store a text representation of a custom class object, cl I have some code that writes to a file and takes the necessary information out of cl. Now I need to go backwards, read the file and return a new instance of cl. The problem is, the file doesn't keep all of the import...
Store pkl / binary in MetaData
0.197375
0
0
250
44,937,003
2017-07-05T22:30:00.000
1
0
0
0
python,mysql,pymysql
44,937,097
2
false
0
0
The problem here is fact a minor mistake. Thanks to @Asad Saeeduddin, when I try to use print cursor._last_executed to check what has happened. I found that what is in fact executed is SELECT * FROM articles WHERE 'title' LIKE '%steven%', look the quotation mark around the title, that's the reason why I got empty set....
1
1
0
What I want is execute the sql select * from articles where author like "%steven%". For the sake of safety, i used like this way : cursor.execute('select * from articles where %s like %s', ('author', '%steven%') Then the result is just empty, not get a syntax error, but just empty set. But I am pretty sure there is ...
Could not format sql correctly in pymysql
0.099668
1
0
221
44,937,573
2017-07-05T23:35:00.000
3
0
0
0
python,pandas
44,937,815
1
true
0
0
When you perform a groupby/agg operation, it is natural to think of the result as a mapping from the groupby keys to the aggregated scalar values. If we were using plain Python, a dict would be the natural data structure to hold such a mapping from keys to values. Since we are using Pandas, a Series is the natural data...
1
1
1
When working with groupby on a pandas DataFrame instance, I have never not used either as_index=False or reset_index(). I cannot actually think of any reason why I wouldn't do so. Because my behavior is not the pandas default (indeed, because the groupby index exists at all), I suspect that there is some functionality ...
What are use cases for *not* resetting a groupby index in pandas
1.2
0
0
40
44,938,099
2017-07-06T00:46:00.000
2
0
1
0
python
44,938,127
1
true
0
0
Multiplication is defined for sequences in general, not just lists, regardless of the type of the contained values. Sure, [1] * 5 -> [5] makes sense for a list of int, but it's nonsensical for a list of str, or a str by itself. They wanted a generic sequence handler that worked for sequences of all types, so they defin...
1
0
0
I know there is something obvious that I am missing but I would rather clear my confusion than to mug it up. why does the following code: [1]*5 return [1,1,1,1,1] and not [5] or [[1],[1],[1],[1],[1]]
multiplication for lists in python
1.2
0
0
42
44,938,737
2017-07-06T02:12:00.000
2
0
0
0
python-3.x,computer-vision,opencv3.0,dlib
46,657,731
2
false
0
0
Dear past version of self. With Deep learning; Convolutional Neural Networks, This becomes a trivial problem. You can retrain Google's inception V3 Model to classify faces into the the 5 face shapes you mentioned in your question. With Just 500 training images you can attain an accuracy of 98%.
1
0
1
Is there an OpenCV-python, dlib or any python 3 implementation of a face shape detector (diamond, oblong, square)?
Is there a python implementation of a Face shape detector?
0.197375
0
0
2,005
44,939,210
2017-07-06T03:16:00.000
0
0
0
0
python,machine-learning,tensorflow,neural-network,random-forest
44,950,403
2
false
0
0
A useful rule for beginning training models, is not to begin with the more complex methods, for example, a Linear model, which you will be able to understand and debug more easily. In case you continue with the current methods, some ideas: Check the initial weight values (init them with a normal distribution) As a pre...
1
1
1
I am using TensorFlow for training model which has 1 output for the 4 inputs. The problem is of regression. I found that when I use RandomForest to train the model, it quickly converges and also runs well on the test data. But when I use a simple Neural network for the same problem, the loss(Random square error) does n...
TensorFlow RandomForest vs Deep learning
0
0
0
2,520
44,939,999
2017-07-06T04:46:00.000
1
0
1
1
linux,python-2.7,centos7
44,940,122
1
false
0
0
If you set Python 2.7.13 to your PATH and not 2.7.5, the used Python should be 2.7.13. Or you can try to set the PYTHONPATH variable
1
0
0
I have a centos 7 machine , which has 2 python versions , python giver sveriosn 2.7.5 and python2.7 givers version . 2.7.13. I want to make 2.7.13 as default version, such that when I check python --version it gives 2.7.13 and not 2.7.5 . I have added both to PATH.
Different python versions in centos
0.197375
0
0
97
44,940,094
2017-07-06T04:56:00.000
0
0
1
1
python,python-2.7
44,940,434
3
false
0
0
Your path is bugged: C:\Program Files\Git\cmd;"C:\Windows;C:\Windows\System32;C:\Python27";C‌​:\Python27\Scripts should not have those random " characters.
2
0
0
I am very new to python, but it seems like I should be able to activate the python environment by simply typing python. Unfortunately, I keep getting the error "'python' is not recognized as an internal or external command, operable program or batch file." I can access python through it's path at C:\Python27\python, wh...
Unable to add python to PATH
0
0
0
381
44,940,094
2017-07-06T04:56:00.000
1
0
1
1
python,python-2.7
44,940,481
3
true
0
0
Your path configuration is incorrect; your path should look like this: C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\‌​WINDOWS;C:\WINDOWS\S‌​ystem32\Wbem;C:\WIND‌​OWS\System32\Windows‌​PowerShell\v1.0\;C:\‌​Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files\jEdit;C:\Program Files\Git\cmd;C:\P...
2
0
0
I am very new to python, but it seems like I should be able to activate the python environment by simply typing python. Unfortunately, I keep getting the error "'python' is not recognized as an internal or external command, operable program or batch file." I can access python through it's path at C:\Python27\python, wh...
Unable to add python to PATH
1.2
0
0
381
44,942,264
2017-07-06T07:23:00.000
0
0
0
0
python,mqtt,paho
63,683,554
3
false
0
0
When sending the initial MQTT CONNECT message from a client, you can supply an optional "keep-alive" value. This value is a time interval, measured in seconds, during which the broker expects a client to send a message, such as a PUBLISH message. If no message is sent from the client to the broker during the interval, ...
1
5
0
Currently developing something like "smart home" and I have few different devices in my home. All of them connected to OpenHab via MQTT. I'm using Paho MQTT library (Python) for my purposes. Generally, MQTT has "keepalive" property. This property describes how much time my client will be connected (AFAIK it sends the ...
Unlimited keepalive in MQTT
0
0
0
14,027
44,942,445
2017-07-06T07:31:00.000
1
0
0
1
python,google-cloud-platform,google-cloud-dataflow,apache-beam
44,953,748
1
true
1
0
Groups cannot be split behind the scenes, so using a GroupByKey should work. In fact, this is a requirement since each individual element must be processed on a single machine and after a GroupByKey all values with a given key are part of the same element. You will likely want to assign random keys. Keep in mind that i...
1
0
0
I'm currently working on a larger Apache Beam pipeline with the Python API which reads data from BigQuery and in the end writes it back to another BigQuery task. One of the transforms needs to use a binary program to transform the data, and for that it needs to load a 23GB file with binary lookup data. So starting and...
Batch Processing in Apache Beam with large overhead
1.2
0
0
1,299
44,944,636
2017-07-06T09:14:00.000
1
0
0
0
python,selenium,selenium-webdriver,selenium-chromedriver
44,944,883
3
false
0
0
chromedriver.exe must be in python path, probably now python expects that driver exists in "D:\Selenium\Chrome\chromedriver.exe" but it does not. You could try add chromedriver.exe path to windows enviroment path variable, or add path to os.path in python, or add driver to folder of python script.
1
0
0
I want to use Selenium on Python but I have an alert message: driver-webdriver.Chrome("D:\Selenium\Chrome\chromedriver.exe") NameError: name 'driver' is not defined I have installed the Chrome Driver, what else must I do ?
"Driver is not defined" Python/Selenium
0.066568
0
1
20,826
44,945,622
2017-07-06T09:55:00.000
0
0
0
0
python,django,django-admin,django-apps
45,302,632
1
false
1
0
You can override admin/base_site.html and write your own version of {% block sidenav_header %}
1
1
0
I have an app other in django. I have models like PaymentMethods , Currencies , ReasonCodes , DeviceInfo etc in this app.. I want to display few models under a different heading. How can I do this? Do we have to use a library? Tried using django-modeladmin-reorder library. But it doesnt work. Note : I am using Django 1...
Display models of same app in different app django
0
0
0
525
44,945,850
2017-07-06T10:05:00.000
0
0
1
0
python,machine-learning,data-science
44,947,979
2
false
0
0
as suggested by @DavidG, the following solution worked: Download the whl file use cmd window and go to the download folder and then install like below: C:\Users\XXXXXXXX>cd C:\Users\XXXXXXXX\Documents\Python Packages C:\Users\XXXXXXXX\Documents\Python Packages>pip install numpy-1.13.0+mkl-cp36-cp36m-win32.whl Process...
1
0
1
How to download necessary python packages for data analysis (e.g. pandas,scipy,numpy etc) and machine learning packages (sci-kit learn for starter, tensorflow for deeplearning if possible etc) without using github or anaconda? Our client has permitted us to install python 3.6 and above (32-bit) in our terminals for dat...
Installing data science packages to vanilla python
0
0
0
931
44,946,737
2017-07-06T10:44:00.000
1
0
0
0
python-2.7,tensorflow,windows-10,keras,coreml
45,007,258
1
true
0
0
A non-optimal solution (the only one I found) in my opinion, is to install a Linux virtual machine. I used VitualBox for it. Then, it is very easy to download Anaconda and Python 2, as well as the right versions of the packages. For example, you can download Tensorflow 1.1.0 using the following command $ pip install -I...
1
0
1
I am currently working on an artificial neural network model with Keras for image recognition and I want to convert it using CoreML. Unfortunately, I have been working with Python3 and CoreML only works with Python 2.7 at the moment. Moreover, Tensorflow for Python 2.7 does not seem to be supported by Windows... So my ...
Installing Tensorflow for Python 2.7 for Keras and CoreML conversion on Windows 10
1.2
0
0
1,130