semvec/pypi-packages huggingface dataset:
thomas-jupyter-widget 0.1.2
Widget to display and interact with Bayesian Networks in JupyterLab.
Keywords: ipython,jupyter,widgets

thomas-jupyter-widget
=====================

Widget to display and interact with Bayesian Networks in JupyterLab. This version only supports JupyterLab >= 3.

Regular Installation
--------------------
The package can be installed through `pip`:
```bash
pip install thomas-jupyter-widget
```


Development Installation
------------------------
First ensure that `nodejs` (>=12) and `yarn` are installed. In debian, you can use the following if you have `sudo` privileges:
```bash
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -

# Running apt-get update is not necessary, since it's alread called in the
# above setup script.
sudo apt-get install -y nodejs

# Install yarn properly. The version of yarn that's available by default is
# just weird.
sudo apt-get remove cmdtest
sudo npm install --global yarn
```

Second, depending on your situation, you may want to create a virtual environment. For example, this might be useful if the command `jupyter labextension develop --overwrite .` fails because it cannot write to the system-wide extensions folder (e.g. `/usr/local`). Under debian/ubuntu, a virtual environment can be created as follows:
```bash
# Install the virtualenv package to make life easier
pip install virtualenv

# Create a virtual environment in the subdirectory '.venv'
virtualenv .venv

# Activate the virtual environment.
source .venv/bin/activate
```

After the preliminaries, install the package as follows:

```bash
# Clone the repository and move into the directory
git clone https://github.com/mellesies/thomas-jupyter-widget.git
cd thomas-jupyter-widget

# Checkout branch jupyter3
git checkout jupyter3

# Install the package in editable mode.
pip install -e .

# We need the latest version of JupyterLab, otherwise this will fail
pip install git+https://github.com/jupyterlab/jupyterlab

# link your development version of the extension with JupyterLab
jupyter labextension develop --overwrite .

# watch the source directory, automatically rebuilding when needed
yarn --cwd ./js run watch
```

Then, start JupyterLab like you normally would in a separate terminal (and don't forget to activate the virtual environment if you're using one ;-).
pyWhapBot 1.0.0
WhatsApp Web API Wrapper for Chrome, Firefox, Opera, Brave and Edge.
Requires Python: >=3.6

![whapbot_logo](images/whapbot.png?raw=true)
![PyPI version]

## Installation
```Python
pip install pywhapbot
```

## Simple Usage
```Python
from pywhapbot import WhapBot
bot = WhapBot("chrome")  # downloads current driver automatically
bot.log()  # optional
bot.send("+34123456789", "Hello world!")  # forces log
bot.quit()
```

## Download specific drivers automatically
```Python
from pywhapbot.install import download_driver
download_driver("firefox", version="0.29.1", root="drivers")
download_driver("opera", version="latest")
download_driver("edge", version="current")
```

## Get versions
```Python
from pywhapbot.utils import get_version
lversion = get_version("brave", "latest")
cversion = get_version("brave", "current")
```

## More advanced example
```Python
from pywhapbot import WhapBot

whapbot = WhapBot(browser="firefox",
                  driver_path="geckodriver.exe",
                  profile_path="profiles/firefox-profile",
                  proxy="169.210.345.10:4567",
                  kiosk=True)  # kiosk mode (not supported on opera)

whapmsgs = [("+34696969420", "Open!"),
            ("+34696942069", "Sourcerer!")]

with whapbot as bot:  # Context manager of selenium webdriver class
    bot.get("https://github.com/saizk")
    # Selenium Webdriver command examples
    bot.driver.set_window_position(210, 210)
    assert len(bot.driver.window_handles) == 1 
    bot.driver.find_element_by_link_text("new window").click()
    bot.driver.switch_to.new_window('tab')
    
    for idx, (phone, message) in enumerate(whapmsgs):
        bot.send(phone, message, timeout=15, retries=5)  # forces log
        bot.screenshot(f"whapbot-{idx}.png")
        print(f"{idx+1}/{len(whapmsgs)} messages sent")    

# bot.quit() called by the context manager
```