Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A Jupyter kernel for interactive acceptance-test-driven development with the Robot Framework
|Smoketest Badge|
RobotKernel is a Robot Framework
_ IPython_ kernel for Jupyter Notebook
_ and JupyterLab_. It powers RobotLab_ – the Robot Framework JupyterLab distribution. Check a video to see it in action
_ and read the documentation
_.
RobotKernel requires Python 3.6 or later with setuptools 40.5.0 later and Robot Framework Robot Framework 3.1 or later.
.. |Smoketest Badge| image:: https://github.com/robots-from-jupyter/robotkernel/workflows/smoketest/badge.svg .. _video to see it in action: https://youtu.be/uYGh9_c3b7s .. _read the documentation: https://robots-from-jupyter.github.io/robotkernel/ .. _Robot Framework: http://robotframework.org/ .. _IPython: https://ipython.org/ .. _Jupyter Notebook: https://jupyter.readthedocs.io/en/latest/ .. _JupyterLab: https://jupyterlab.readthedocs.io/en/stable/ .. _RobotLab: https://github.com/robots-from-jupyter/robotlab/releases
For alternative Robot Framework IPython kernel, check out ipythonrobotframework
_ or xeus-robot
_.
.. _ipythonrobotframework: https://github.com/gtri/irobotframework .. _xeus-robot: https://github.com/jupyter-xeus/xeus-robot
You can try RobotKernel instantly without installing it at MyBinder_ cloud:
Launch JupyterLab with RobotKernel: https://mybinder.org/v2/gh/robots-from-jupyter/robotkernel/master?urlpath=lab/tree/example.ipynb
Launch Jupyter Notebook with RobotKernel: https://mybinder.org/v2/gh/robots-from-jupyter/robotkernel/master?urlpath=tree/example.ipynb
Note: Log | Report -links on saved notebooks may not be clickable until notebook is "trusted"
__ ("Trust Notebook" in JupyterLab Commands) the related cells have been executed again.
.. _MyBinder: https://mybinder.org/ __ https://jupyter-notebook.readthedocs.io/en/latest/security.html#updating-trust
RobotKernel can be installed using the usual Python package manager tools, like pip:
.. code:: bash
$ pip install robotkernel
For JupyterLab it is recommended to also install the Robot Framework syntax highlighting and Jupyter widgets support:
.. code:: bash
$ jupyter labextension install jupyterlab_robotmode $ jupyter labextension install @jupyter-widgets/jupyterlab-manager
For some environments it might be required to run the following command to manually register robotkernel as an available Jupyter kernel:
.. code:: bash
$ python -m robotkernel.install
It is possible to export Robot Framework Jupyter notebooks to regular plain text .robot
files for usage without Jupyter:
.. code:: bash
$ jupyter nbconvert --to script example.ipynb
.. _nbconvert: https://nbconvert.readthedocs.io/
RobotKernel installs a script named nbrobot
. It can be used instead of Robot Framework's robot
test runner to execute Robot Framework with .ipynb
-extension support:
.. code:: bash
$ nbrobot example.ipynb
Create and activate a new Python virtual environment:
.. code:: bash
$ venv myenv
$ source myenv/bin/activate
Install Jupyter:
.. code:: bash
$ pip install --upgrade pip setuptools
$ pip install jupyter
Clone this kernel:
.. code:: bash
$ git clone https://github.com/robots-from-jupyter/robotkernel.git
$ cd robotkernel
Install the kernel into the virtualenv in develop mode:
.. code:: bash
$ python setup.py develop
$ python -m robotkernel.install
Launch the jupyter:
.. code:: bash
$ jupyter notebook
Reloading the kernel reloads the code.
Learn more about Jupyter kernel development.
__
__ http://jupyter.readthedocs.io/en/latest/install.html
This repository includes an opinionated environment for running and developing RobotKernel with Nix_ with Cachix-powered binary cache
__.
__ https://robots-from-jupyter.cachix.org/
Launch Jupyter Notebook with RobotKernel:
.. code:: bash
$ nix-shell -E 'import (fetchTarball https://github.com/robots-from-jupyter/robotkernel/archive/master.tar.gz + "/shell.nix")' --run "jupyter notebook"
.. _Nix: https://nixos.org/nix/
Launch JupyterLab with RobotKernel:
.. code:: bash
$ nix-shell -E 'import (fetchTarball https://github.com/robots-from-jupyter/robotkernel/archive/master.tar.gz + "/shell.nix")' $ jupyter labextension install jupyterlab_robotmode --app-dir=.jupyterlab $ jupyter lab --app-dir=.jupyterlab $ exit
Add --arg vim true
to enable vim bindings
_.
.. _vim bindings: https://github.com/lambdalisue/jupyter-vim-binding
Open development environment with Nix:
.. code:: bash
$ git clone https://github.com/robots-from-jupyter/robotkernel.git
$ cd robotkernel
$ nix-build setup.nix -A env # to generate ./result/bin/python for IDE
$ nix-shell setup.nix -A develop
Add support for robotframework==5.1b2 [datakurre]
Add support for ipywidgets 8 [datakurre
Add pyolite support [datakurre]
Add %sticky magic LibraryName -magic to optionally preserve state of global and suite scope libraries between executions [datakurre]
Update classic Notebook mode with Robot Framework 5 features [bollwyvl, datakurre]
Update Selenium helpers to current Selenium API [RomaCZ]
New features:
Add keyword execution widgets below executed keyword cells; Add to toggle widgets on consecutive executions without code changes [datakurre]
Add listener to keep state of suite level variables between robot executions [datakurre]
Add IPython display hooks [datakurre]
New features:
Add WhiteLibrary state support and interactive element picker [datakurre]
Add WhiteLibraryCompanion keyword library to interactively select elements and click elements with OpenCV templates [datakurre]
Breaking:
new features:
New features:
Rewrite status updater to the status of currently run test as
trobber | test name | keyword name | robot.api.logger.console message
[datakurre]
Add embedded log and report to include Download-links at top right corner [datakurre]
Add to display the results of the last executed keyword as the notebook result for the executed code cell [datakurre]
Add syntax highlighting for variables and assignment operators [datakurre]
Bug fixes:
Fix issue where setup.cfg contained OS specific path separators preventing build on Windows [datakurre]
Fix issue where PNGs were interpreted as APNG on Windows preventing them from being rendered on Windows [datakurre]
Update example notebook to use SeleniumLibrary and SeleniumScreenshots instead of SeleniumLibrary and Selenium2Screenshots [datakurre]
Add to always reload libraries imported from other notebooks [datakurre]
Breaking:
Other:
This is the last release compatible with robotframework < 3.1
Add support for robotframework 3.1a2 [datakurre]
Add support for reporting RPA suites with "Tasks" instead of "Tests" [datakurre]
Note on README that Log | Report -links require trusting the notebook [datakurre]
Fix to wrap test execution updates with '
' for better readability [datakurre]
FAQs
A Jupyter kernel for interactive acceptance-test-driven development with the Robot Framework
We found that robotkernel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.