jupyterlab-tailwind-theme icon indicating copy to clipboard operation
jupyterlab-tailwind-theme copied to clipboard

Adjustable cells max width

Open gMatas opened this issue 3 years ago • 9 comments

Consider adding support for adjusting the max-width of cells, or even making a separate extension for that, as I don't know if there are any other extensions, currently, that would do that.

Other than that, the fact that your extension/theme provides a centered cells view is really refreshing especially using a widescreen monitor. I understand the pros for default JupyterLab default full-width cells view, but it can be quite bothersome on nonstandard monitors. Thus this theme has become quite special to me.

gMatas avatar Apr 25 '21 00:04 gMatas

Hi @gMatas, thank you for your feedback! Yeah I also have a wide screen and did not find it particularly appealing to see the cells being stretched to full screen width.

I'll need to first explore what options there are to achieve this (Are there built-in settings? If not how to allow the theme extension to define and read user settings?, ...). Let me know if you have any further ideas or links/material.

simicd avatar May 01 '21 15:05 simicd

Made some progress with the max width option. As part of the JupyterLab settings (Settings -> Advanced Settings Editor -> Theme - Tailwind) one will have the possibility to change the default (e.g. changing the absolute value in pixels, setting a relative value in %, ...). Is that what you had in mind?

I'm planning to release this later today so you also get a chance to try it out.

image

simicd avatar May 09 '21 11:05 simicd

Just published v3.0.3 with the cell width setting

simicd avatar May 09 '21 19:05 simicd

@simicd I can't find the "Theme - Tailwind" tab in my Jupyter Lab. Is there an alternative thing to do in the "Theme" tab?

Screen Shot 2021-06-01 at 5 14 23 PM

aalyousfi avatar Jun 01 '21 13:06 aalyousfi

Hi @aalyousfi, two quick questions just to rule out two potential issues:

  • Could you confirm that you have installed the latest version of the package (v3.0.3)?
  • Have you completely restarted Jupyter after the installation?

simicd avatar Jun 02 '21 21:06 simicd

Hi @simicd. I completely restarted Jupyter after the installation. I installed the theme on the same day of my previous message. I'm not sure how to find the version installed.

aalyousfi avatar Jun 13 '21 12:06 aalyousfi

Thanks for the feedback @aalyousfi. You can check the installed version by entering jupyter labextension list . into your command line tool (PowerShell, CMD, bash, ...)

simicd avatar Jun 13 '21 20:06 simicd

Hi @simicd .. It turns out that the installed version is 0.3.2.

jupyterlab-tailwind-theme v0.3.2 enabled OK

Why do you think it didn't install the latest version?

aalyousfi avatar Jun 15 '21 17:06 aalyousfi

I just installed the latest version via the Jupyterlab Extension manager and the max cell width setting does not seem to work. I increased it to 1280 and also tried 1600, and restarted the notebook, but it was still cut off at 1024.

michaelaye avatar Nov 10 '21 00:11 michaelaye