task_boiler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
task_boiler [2023/05/21 02:01] – [conda environment file to install different packages from different channels] raju | task_boiler [2024/01/22 22:59] – [Issue] raju | ||
---|---|---|---|
Line 4: | Line 4: | ||
Start the first heading with " | Start the first heading with " | ||
- | ===== conda environment file to install different packages from different channels | + | ===== blocked by barrons ===== |
- | + | ==== Issue ==== | |
- | ==== Background | + | barrons.com is giving |
- | + | ||
- | yfinance library is the easiest and fastest way to download historical stock prices. Asof 2023-05-20, it is not available in the defaults channel. But is available in the conda-forge channel. | + | |
- | + | ||
- | ==== Task ==== | + | |
- | + | ||
- | The goal here is to pull the yfinance package from conda-forge but everything else from the defaults channel. | + | |
- | + | ||
- | ==== Solution ==== | + | |
< | < | ||
- | % cat env_test_yfinance.yml | stuff.py | + | You have been blocked. |
- | name: test_yfinance | + | |
- | channels: | + | |
- | - defaults | + | |
- | dependencies: | + | |
- | - python=3.11 | + | |
- | - conda-forge:: | + | |
- | </ | + | |
- | where stuff.py is a python script to strip out the comments. It can be downloaded from https:// | + | Why? |
+ | Something about the behaviour of the browser has caught our | ||
+ | attention. | ||
- | Create | + | There are various possible explanations for this: |
+ | * You are browsing and clicking at a speed much faster than | ||
+ | expected of a human being. | ||
+ | * Something is preventing JavaScript from working on your | ||
+ | computer. | ||
+ | * There is a robot on the same network (IP WW.XX.YY.ZZ) as you. | ||
- | < | + | Having problems accessing the site? Submit feedback. |
- | % conda env create | + | ID: a-b-c-d-e |
</ | </ | ||
- | ==== Evidence | + | ==== Solution |
- | yfinance is downloaded from conda-forge. | + | Click on the extensions button in the top right |
- | <code> | + | -> Bypass Paywalls Clean -> settings button |
- | % conda list -n test_yfinance | grep conda-forge | + | -> scroll down to "BPC settings" |
- | multitasking | + | -> check " |
- | yfinance | + | -> Save |
- | </code> | + | |
- | + | ||
- | python is downloaded from the defaults channel | + | |
- | < | + | |
- | % conda list -n test_yfinance | grep "python" | + | |
- | python | + | |
- | python-dateutil | + | |
- | </code> | + | |
- | ==== See also ==== | + | ==== System Information |
- | * The above environment file can be downloaded from https://github.com/ | + | * bypass paywalls clean extension version: 3.5.2.1 (latest asof 2024-01-22) |
- | * I got the idea from https:// | + | * google chrome: 120.0.6099.200 |
- | * The official documentation I could find on this feature is https://conda.io/ | + | * OS: Windows 10 Enterprise |
- | <Todo:- See if you can find a better link afterwards.> | + | |
task_boiler.txt · Last modified: 2024/01/23 22:55 by raju