Comments (6)
cc @Carreau, @martinRenou, @jtpio, @matthewfeickert
from jupyterlite.
You might be able to use the doit --
"plumbing" CLI option:
jupyter lite doit --log-level ERROR -- --verbosity 0 --reporter zero build
There are still a fair number of print
statements, however, which are not covered by the above settings
from jupyterlite.
You might be able to use the
doit --
"plumbing" CLI option:jupyter lite doit --log-level ERROR -- --verbosity 0 --reporter zero build
There are still a fair number of
Thanks! I’ll try that. I was about to open a separate issue for the print statements. My thought was maybe to use the logger there instead, but set the handler to omit all but the message so that the output looks the same.
from jupyterlite.
The doit --
plumbing options seemed to not help unfortunately.
I changed the invocation of jupyter lite build
in jupyterlite-sphinx
from
command = [
"jupyter",
"lite",
"build",
*config,
*contents,
"--contents",
os.path.join(app.srcdir, CONTENT_DIR),
"--output-dir",
os.path.join(app.outdir, JUPYTERLITE_DIR),
*apps_option,
"--lite-dir",
jupyterlite_dir,
"--log-level",
"WARN",
]
subprocess.run(command, cwd=app.srcdir, check=True)
to
command = [
"jupyter",
"lite",
"build",
*config,
*contents,
"--contents",
os.path.join(app.srcdir, CONTENT_DIR),
"--output-dir",
os.path.join(app.outdir, JUPYTERLITE_DIR),
*apps_option,
"--lite-dir",
jupyterlite_dir,
"--log-level",
"WARN",
"doit",
"--",
"--verbosity",
"0",
"--reporter",
"zero"
]
subprocess.run(command, cwd=app.srcdir, check=True)
with no impact on the output.
It seems like the plumbing options only apply for the LiteRawDoItApp
, which isn't used for the tasks printing these messages. Making the LiteDoItApp
respect doit
plumbing options in CLI seems like it could be a reasonable fix.
and it didn't work because I put things in the incorrect order. See below.
from jupyterlite.
Sorry, nevermind. I got it to work. I guess the order is very important. What I'd written earlier is just the first permutation that that didn't error out when I built. Here's the winning permutation:
command = [
"jupyter",
"lite",
"doit"
"build",
*config,
*contents,
"--contents",
os.path.join(app.srcdir, CONTENT_DIR),
"--output-dir",
os.path.join(app.outdir, JUPYTERLITE_DIR),
*apps_option,
"--lite-dir",
jupyterlite_dir,
"--log-level",
"WARN",
"--",
"--verbosity",
"0",
"--reporter",
"zero",
]
subprocess.run(command, cwd=app.srcdir, check=True)
Thanks for the help!
from jupyterlite.
@bollwyvl, reopening because the command above didn't actually work. The output was only suppressed because the command is broken. It seems like it will actually be necessary to make doit
configurable within jupyterlite
.
from jupyterlite.
Related Issues (20)
- Option to make a "contents" path read only HOT 2
- Code completion produces bad results for indented lines
- Bug + Documentation:: troubleshooting suspect packages and lining up error in web console HOT 2
- Failing `win-dev` check on CI
- Chrome crash "Aw, Snap!" HOT 4
- DOMException: Failed to execute 'put' on 'Cache': Quota exceeded. HOT 1
- missing notebook path HOT 3
- Menu "Save and export notebook as" not showing up HOT 1
- Kernel gets lost when restarting kernel HOT 2
- Include custom extension to the jupyterlite HOT 10
- Can JupyterLite / Lab interfere with other JupyterLab installs? HOT 1
- Trying to prevent "FileNotFoundError: [Errno 44]" HOT 1
- Question: How to customise page title HOT 1
- Demo not loading anymore HOT 7
- looking if polars and/or duckdb are possible on latest jupyterlie HOT 2
- Command to update contents when notebooks are added without having to rebuild HOT 1
- Version Python and JS packages separately
- Follow-up to the JupyterLab 4.2 and Notebook 7.2 releases
- notebook execution fails on firefox when notebook is in a subfolder and jupyterlite is in an iframe HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlite.