Ask coding questions

← Back to all posts
Can we make the web interface go away?
mefellows (0)

I'm trying to setup an in-browser experience as a tutorial on how to use Pact (pact.io). Pact sets up an HTTP server in the background as part of its testing, and as far as I can tell, repl.it detects this and creates a web view.

The web view is not required at all for this package, and instead we want to direct people to the terminal output. It also seems that repl.it now detects that the port is open and sends a GET / to it - which is also undesired behaviour.

Because the server doesn't start up immediately, when people see the embedded tutorial they get "Hmmmm.... We Couldn't Reach Your Repl" issue - how can I resolve this?

Is it possible to make the web view go away?

Comments
hotnewtop
WhoulFoul (2)

Does anybody know how to re-open web view?

JonathanButler (0)

@WhoulFoul Refreshing the page should do it.

lynnlo (48)

I don't think theres a workaround without changing the code and I'm not familiar with pact.io maybe only show the console and hide the web view or try a different non web based IDE, if you're making a tutorial then its a good idea to use your local machine to run it. Not only is it faster in most cases but it sets a similar development environment as most of your viewers.

mefellows (0)

Thanks @tharlynnhtetong. Perhaps I'm missing something, but isn't the whole point of repl.it to do things in the browser? Of course I could provide material for people to download and do locally (we do) but being able to quickly demonstrate an idea in documentation is one of the great benefits of this tool.

maybe only show the console and hide the web view

That's what I want, how can I hide the web view? I don't need it for this example, but it opens anyway. I can't find any documentation that suggests it's possible.

lynnlo (48)

@mefellows

You can close the webview here.

mefellows (0)

@tharlynnhtetong thanks, yes I know you can manually close the web view, but that is not very helpful in this situation because it is open by default. It looks I can't do what I'm after, thanks for your help!

MrTesla (1)

@lynnlo How do I undo this web view? I just accidentally close it, but I need it for my flask web app preview. And later on how to change terminal like bash, python etc?

lynnlo (48)

@MrTesla Pressing CTRL + SHIFT + S should open up the terminal. As for the webview it'll automatically open once you run the flask server.