Moved from Jupyter Notebook GUI to Jupyterlab, behavior of Notebook is different between GUI's

38 views
Skip to first unread message

Dennis

unread,
Aug 23, 2018, 11:43:54 AM8/23/18
to Project Jupyter
Dear all,

I've used the Jupyter Notebook happily and successfully for some time now. But I'm trying to change to JupyterLab to make use of the more powerful toolbars and better layout. However, I`m not getting the same behavior between opening an identical notebook in the classic or new GUI. Can someone please help or point me in the right direction on the following subjects?
  1. In the classic notebook GUI I've made cells uneditable and undeletable using the cell metadata, this works exactly as expected. When I open the same Notebook via JupyterLab these settings are not in effect anymore, I can edit and delete the cells even though the metadata is set properly (see below). What syntax is compatible with JupyterLab?
    • {
         
      "deleteable": false,
         
      "editable": false,
         
      "scrolled": true
      }
  2. I've made links to HTML files in the same folder as the notebook. In a markdown cell within the notebook I've set up a link as shown below. If it is opened in the Classic GUI the link opens the HTML file in a new browser tab and renders it properly, which is what I want. When I do the same within Jupyterlab it opens the HTML code instead of rendering it, furthermore it opens it as a Jupyterlab tab instead of an additional tab in the browser. What is the method or syntax to fix this link back to the old behavior?
    • [Report](path/to/file.html)
  3. I want to hide code cells from view, preferably using a clickable toggle in the notebook. For the classical notebook I've found this solution (http://blog.nextgenetics.net/?e=102), and that works perfectly; when I share the link to the notebook my colleague-coders can click the toggle and inspect the code whilst non-coder end-users are not scared by the code and instead only see the output. However, this solution does not work for Jupyterlab. I've found these sources https://github.com/jupyterlab/jupyterlab/issues/4100https://stackoverflow.com/questions/31517194/how-to-hide-one-specific-cell-input-or-output-in-ipython-notebook . But is there a way to more accurately emulate the original javascript code?
I'd be most obliged for help, and I apologize in advance if I've misunderstood the intent or functionality of Jupyterlab, feel free to educate me :) With the exception of the above points, which admit-ably are failures in my understanding, I really like the new GUI!

Kind regards,
Dennis
Reply all
Reply to author
Forward
0 new messages