Python Forum
Is it possible to update a CSS file from Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to update a CSS file from Python
#1
Hello!

I have a main.scss file (I'm using SASS) and a Jupyter Notebook (.ipynb) in the same folder. I want to update only ONE line of code in my main.scss file but I want to do it from my jupyter notebook's python code. Is this possible?

To illustrate, in my main.scss file I have this at the top:
$customer_color_1: #cb2324;

Using python, I ONLY want to update that $customer_color_1 variable to become as follows:
$customer_color_1: #005f9f;

Is this possible??? If so, how? Thank you for any help!!

-AL
Reply


Messages In This Thread
Is it possible to update a CSS file from Python - by bigAL_python - Apr-15-2022, 05:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read csv file update matplotlib column chart regularly SamLiu 2 1,092 Jan-21-2023, 11:33 PM
Last Post: SamLiu
  value null when update in json file 3lnyn0 6 3,376 Dec-30-2021, 05:52 PM
Last Post: ndc85430
  |SOLVED] Glob JPGs, read EXIF, update file timestamp? Winfried 5 2,537 Oct-21-2021, 03:29 AM
Last Post: buran
Question Python + Google Sheet | Best way to update specific cells in a single Update()? Vokofe 1 2,721 Dec-16-2020, 05:26 AM
Last Post: Vokofe
  Update Python Files Harshil 3 2,292 Aug-28-2020, 10:52 AM
Last Post: Harshil
  Config file update Olivier74 0 1,500 Aug-18-2020, 03:36 PM
Last Post: Olivier74
  update txt file but keep a specific line 3Pinter 2 2,114 Dec-16-2019, 07:54 AM
Last Post: 3Pinter
  Update any file Evil_Patrick 1 1,454 Sep-24-2019, 04:26 PM
Last Post: Larz60+
  XML update using python sathiyarajmca 1 2,129 Jun-18-2019, 06:11 PM
Last Post: Larz60+
  Python csv compare two file, update value if two value is matched kinojom 1 2,568 Apr-17-2019, 10:36 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020