robots-from-jupyter / robotlab

Experiments in building installers for JupyterLab, Robot Framework and Friends
BSD 3-Clause "New" or "Revised" License
25 stars 3 forks source link

As newcomer I did expect robot file to open as a new notebook #49

Closed datakurre closed 4 years ago

datakurre commented 5 years ago

Is there a hook in Jupyter that would allow us to import a raw source file?

Sure a good experience would not be trivial, because we should split the source into cells in some sane way. It could require parsing and generating the file.

datakurre commented 5 years ago

The easiest workaround is to copy paste entire file into a single cell and learn cell splitting keyword to split it into practical chunks.

bollwyvl commented 5 years ago

heh. well, i have been avoiding doing new code work specifically for RobotLab, but...

Also, apropos of nothing, I might rep RobotLab at the community call tomorrow. Folks would be familiar with Jupyter stuff, but less so with Robot. Part of it would just be "Hey, you can distribute complex Jupyter-y things that aren't just python".

datakurre commented 5 years ago

I would expect that there has been similar ideas for imports Python source files 🤔

I agree on that we really should not hurry on cluttering the interface with. we buttons.

datakurre commented 5 years ago

I should look into getting robot support into jupytext. That’s definitely higher priority.

datakurre commented 4 years ago

Jupytext should do this now in RobotLab 2019.12.0. Although, the resulting notebooks needs joining of cells to make the notebook usable. But that would be an issue for jupytext (for us) to provide better robot => notebook conversion.