How to change the Jupyter start-up folder

Jupyter Notebook and JupyterLab < 3.0 For old Jupyter Notebook interface installed with notebook package and run as jupyter notebook (see the next section for the identical interface installed with nbclassic and run with jupyter nbclassic, and for JupyterLab): Open cmd (or Anaconda Prompt) and run jupyter notebook –generate-config. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py. Browse to the file location and open it in an Editor Search … Read more

Python can’t find my module

Essentially, when you execute script.py directly, it doesn’t know that it’s part of a submodule of src, nor does it know where a module named src might be. This is the case in either python 2 or 3. As you know, Python finds modules based on the contents of sys.path. In order to import any module, it must either be located … Read more

I need an XPATH to extract data from www.gsmarena.com

I am doing a research about how mobile phones evolved over years so I need to create a database with specifications of as many phones is possible. I am trying to scrap data from GSM Arena website. Example page: http://www.gsmarena.com/samsung_galaxy_note7-8082.php I am using XPATH that contains the label that precedes each value, example //tr[contains (.,”Sensors”)]/td[2] But there … Read more