Files
galaxy/lib/galaxy_test/selenium/jupyter/notebook_example_library.ipynb
T
John Chilton 5661e0db9f Exploratory Jupyter environment for `galaxy-selenium`.
The new Makefile-based command ``make serve-selenium-notebooks`` will serve notebooks in lib/galaxy_test/selenium/jupyter.

The notebooks will target a Galaxy host running on port 8080 - but are parameterized to be run with papermill (https://papermill.readthedocs.io/) for automate targeting different Galaxy servers, remote Selenium servers, etc..

Screenshots will be embedded right into the notebook.

Example notebooks setup to target just the library code in ``galaxy-selenium`` as well as one appropriate to leverage the Galaxy testing framework are included and documented in depth via modules docstring for ``galaxy_test.selenium.jupyter``.
2021-01-18 17:24:28 -05:00

487 KiB

In [1]:
# Cell is tagged with 'parameters' so it can be parameterized with papermill,
# if config not overridden ./galaxy_selenium_context.yml can also be populated.
config = None
In [2]:
from galaxy.selenium.jupyter_context import init
gx_selenium_context = init(config)
In [3]:
gx_selenium_context.home()
In [4]:
gx_selenium_context.screenshot("home")
Out [4]:
In [ ]: